### Question:
DeploymentConfig { @Override public boolean equals(Object other) { if (other instanceof DeploymentConfig) { DeploymentConfig otherConfig = (DeploymentConfig)other; return uriElement.equals(otherConfig.getUriElement()) && realm.equals(otherConfig.getRealm()) && authTargetMapping.equals(otherConfig.getAuthTargetMapping()) && Objects.equal(offloadedTwoWayTLSHeaderKey, otherConfig.getOffloadedTwoWayTlsHeaderKey()) && Objects.equal(tlsOffloadEngineHostIpAddrs, otherConfig.getTlsOffloadEngineHostIpAddrs()); } return false; } protected  DeploymentConfig(DeploymentConfigBuilderBase<?> builder); static DeploymentConfigBuilderBase<?> builder(); String getUriElement(); String getRealm(); AuthTargetMapping getAuthTargetMapping(); String getOffloadedTwoWayTlsHeaderKey(); Set<String> getTlsOffloadEngineHostIpAddrs(); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode(); JsonValue toJson(); static DeploymentConfig fromJson(JsonValue json); Map<String, Set<String>> marshalToAttributeMap(); static DeploymentConfig marshalFromAttributeMap(Map<String, Set<String>> attributeMap);  }### Answer:
@Test public void testEquals() { AuthTargetMapping atm = AuthTargetMapping.builder() .addMapping(TokenType.USERNAME, "module", "untmodule") .build(); DeploymentConfig dc1 = DeploymentConfig.builder() .realm("a") .uriElement("b") .offloadedTwoWayTLSHeaderKey(CLIENT_CERT) .tlsOffloadEngineHostIpAddrs(tlsOffloadEngineHostIpAddrs) .authTargetMapping(atm) .build(); DeploymentConfig dc2 = DeploymentConfig.builder() .realm("a") .uriElement("b") .offloadedTwoWayTLSHeaderKey(CLIENT_CERT) .tlsOffloadEngineHostIpAddrs(tlsOffloadEngineHostIpAddrs) .authTargetMapping(atm) .build(); assertEquals(dc1, dc2); assertEquals(dc1.hashCode(), dc2.hashCode()); }