### Question:
ResponseFromHub { @Override public String toString() { final StandardToStringStyle style = new StandardToStringStyle(); style.setUseIdentityHashCode(false); return ReflectionToStringBuilder.toString(this, style); } @SuppressWarnings("unused")//Needed by JAXB private  ResponseFromHub();  ResponseFromHub(
            String responseId,
            String inResponseTo,
            String authnRequestIssuerEntityId,
            List<String> encryptedAssertions,
            Optional<String> relayState,
            URI assertionConsumerServiceUri,
            TransactionIdaStatus status); String getAuthnRequestIssuerEntityId(); String getResponseId(); String getInResponseTo(); List<String> getEncryptedAssertions(); Optional<String> getRelayState(); URI getAssertionConsumerServiceUri(); TransactionIdaStatus getStatus(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testToString() { final StringBuilder sb = new StringBuilder("uk.gov.ida.hub.policy.domain.ResponseFromHub["); sb.append("authnRequestIssuerEntityId=").append(responseFromHub.getAuthnRequestIssuerEntityId()); sb.append(",responseId=").append(responseFromHub.getResponseId()); sb.append(",inResponseTo=").append(responseFromHub.getInResponseTo()); sb.append(",status=").append(responseFromHub.getStatus()); sb.append(",encryptedAssertions=").append(responseFromHub.getEncryptedAssertions()); sb.append(",relayState=").append(responseFromHub.getRelayState()); sb.append(",assertionConsumerServiceUri=").append(responseFromHub.getAssertionConsumerServiceUri()); sb.append(']'); assertThat(responseFromHub.toString()).isEqualTo(sb.toString()); }