### Question:
SoapDelegationConfig { @Override public boolean equals(Object other) { if (other instanceof SoapDelegationConfig) { SoapDelegationConfig otherConfig = (SoapDelegationConfig)other; return Objects.equal(validatedDelegatedTokenConfiguration, otherConfig.getValidatedDelegatedTokenConfiguration()) && Objects.equal(customDelegationTokenHandlers, otherConfig.getCustomDelegationTokenHandlers()); } return false; } private  SoapDelegationConfig(SoapDelegationConfigBuilder builder); Set<TokenValidationConfig> getValidatedDelegatedTokenConfiguration(); Set<String> getCustomDelegationTokenHandlers(); static SoapDelegationConfigBuilder builder(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object other); JsonValue toJson(); static SoapDelegationConfig fromJson(JsonValue json); Map<String, Set<String>> marshalToAttributeMap(); static SoapDelegationConfig marshalFromAttributeMap(Map<String, Set<String>> attributeMap); static Map<String, Set<String>> getEmptySMSAttributeState();  }### Answer:
@Test public void testEquals() { SoapDelegationConfig sdc1 = buildSoapDelegationConfig(WITH_DELEGATION_TOKEN_TYPES, WITH_CUSTOM_DELEGATION_HANDLERS); SoapDelegationConfig sdc2 = buildSoapDelegationConfig(WITH_DELEGATION_TOKEN_TYPES, WITH_CUSTOM_DELEGATION_HANDLERS); assertEquals(sdc1, sdc2); assertEquals(sdc1.hashCode(), sdc2.hashCode()); sdc1 = buildSoapDelegationConfig(!WITH_DELEGATION_TOKEN_TYPES, WITH_CUSTOM_DELEGATION_HANDLERS); sdc2 = buildSoapDelegationConfig(!WITH_DELEGATION_TOKEN_TYPES, WITH_CUSTOM_DELEGATION_HANDLERS); assertEquals(sdc1, sdc2); assertEquals(sdc1.hashCode(), sdc2.hashCode()); sdc1 = buildSoapDelegationConfig(WITH_DELEGATION_TOKEN_TYPES, !WITH_CUSTOM_DELEGATION_HANDLERS); sdc2 = buildSoapDelegationConfig(WITH_DELEGATION_TOKEN_TYPES, !WITH_CUSTOM_DELEGATION_HANDLERS); assertEquals(sdc1, sdc2); assertEquals(sdc1.hashCode(), sdc2.hashCode()); }