### Question:
SoapDeploymentConfig extends DeploymentConfig { @Override public boolean equals(Object other) { if (other instanceof SoapDeploymentConfig) { SoapDeploymentConfig otherConfig = (SoapDeploymentConfig) other; return super.equals(otherConfig) && Objects.equal(serviceQName, otherConfig.serviceQName) && Objects.equal(portQName, otherConfig.portQName) && wsdlLocation.equals(otherConfig.wsdlLocation) && Objects.equal(customWsdlLocation, otherConfig.customWsdlLocation) && Objects.equal(customServiceQName, otherConfig.customServiceQName) && Objects.equal(customPortQName, otherConfig.customPortQName) && amDeploymentUrl.equals(otherConfig.getAmDeploymentUrl()); } return false; } private  SoapDeploymentConfig(SoapDeploymentConfigBuilderBase<?> builder); static SoapDeploymentConfigBuilder builder(); QName getService(); QName getPort(); String getAmDeploymentUrl(); String getWsdlLocation(); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode(); JsonValue toJson(); static SoapDeploymentConfig fromJson(JsonValue json); Map<String, Set<String>> marshalToAttributeMap(); static SoapDeploymentConfig marshalFromAttributeMap(Map<String, Set<String>> attributeMap); static final String CUSTOM_SOAP_STS_WSDL_FILE_INDICATOR; }### Answer:
@Test public void testEquals() { SoapDeploymentConfig dc1 = soapDeploymentConfig(WITH_TLS_OFFLOAD_CONFIG); SoapDeploymentConfig dc2 = soapDeploymentConfig(WITH_TLS_OFFLOAD_CONFIG); assertEquals(dc1, dc2); assertEquals(dc1.hashCode(), dc2.hashCode()); dc1 = soapDeploymentConfig(!WITH_TLS_OFFLOAD_CONFIG); dc2 = soapDeploymentConfig(!WITH_TLS_OFFLOAD_CONFIG); assertEquals(dc1, dc2); assertEquals(dc1.hashCode(), dc2.hashCode()); }