### Question:
SoapSTSKeystoreConfig { @Override public boolean equals(Object other) { if (other instanceof SoapSTSKeystoreConfig) { SoapSTSKeystoreConfig otherConfig = (SoapSTSKeystoreConfig)other; return keystoreFileName.equals(otherConfig.getKeystoreFileName()) && Arrays.equals(keystorePassword, otherConfig.getKeystorePassword()) && Objects.equal(signatureKeyAlias, otherConfig.getSignatureKeyAlias()) && Objects.equal(encryptionKeyAlias, otherConfig.getEncryptionKeyAlias()) && Arrays.equals(signatureKeyPassword, otherConfig.getSignatureKeyPassword()) && Arrays.equals(encryptionKeyPassword, otherConfig.getEncryptionKeyPassword()); } return false; } private  SoapSTSKeystoreConfig(SoapSTSKeystoreConfigBuilder builder); static SoapSTSKeystoreConfigBuilder builder(); String getKeystoreFileName(); byte[] getKeystorePassword(); String getSignatureKeyAlias(); String getEncryptionKeyAlias(); byte[] getSignatureKeyPassword(); byte[] getEncryptionKeyPassword(); @Override String toString(); @Override boolean equals(Object other); @Override int hashCode(); JsonValue toJson(); static SoapSTSKeystoreConfig fromJson(JsonValue json); Map<String, Set<String>> marshalToAttributeMap(); static SoapSTSKeystoreConfig marshalFromAttributeMap(Map<String, Set<String>> attributeMap); static Map<String, Set<String>> getEmptySMSAttributeState();  }### Answer:
@Test public void testEquals() throws UnsupportedEncodingException { SoapSTSKeystoreConfig kc1 = keystoreConfig(ENCRYPT, SIGN); SoapSTSKeystoreConfig kc2 = keystoreConfig(ENCRYPT, SIGN); assertEquals(kc1, kc2); assertEquals(kc1.hashCode(), kc2.hashCode()); kc1 = keystoreConfig(ENCRYPT, !SIGN); kc2 = keystoreConfig(ENCRYPT, !SIGN); assertEquals(kc1, kc2); assertEquals(kc1.hashCode(), kc2.hashCode()); kc1 = keystoreConfig(!ENCRYPT, !SIGN); kc2 = keystoreConfig(!ENCRYPT, !SIGN); assertEquals(kc1, kc2); assertEquals(kc1.hashCode(), kc2.hashCode()); kc1 = keystoreConfig(!ENCRYPT, SIGN); kc2 = keystoreConfig(!ENCRYPT, SIGN); assertEquals(kc1, kc2); assertEquals(kc1.hashCode(), kc2.hashCode()); }