### Question:
SaslClientDigestCallbackHandler extends SaslDigestCallbackHandler { @Override public int hashCode() { HashCodeBuilder hcb = new HashCodeBuilder(41, 47); hcb.append(userName).append(userPassword); return hcb.toHashCode(); } SaslClientDigestCallbackHandler(DelegationTokenImpl token);  SaslClientDigestCallbackHandler(String userName, char[] userPassword); @Override void handle(Callback[] callbacks); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object o);  }### Answer:
@Test public void testEquality() { SaslClientDigestCallbackHandler handler1 = new SaslClientDigestCallbackHandler("user", "mypass".toCharArray()), handler2 = new SaslClientDigestCallbackHandler("user", "mypass".toCharArray()); assertEquals(handler1, handler2); assertEquals(handler1.hashCode(), handler2.hashCode()); }