### Question:
BindResponseImpl extends AbstractResultResponse implements BindResponse { @Override public int hashCode() { int hash = 37; hash = hash * 17 + Arrays.hashCode( serverSaslCreds ); hash = hash * 17 + super.hashCode(); return hash; } BindResponseImpl();  BindResponseImpl( final int id ); @Override byte[] getServerSaslCreds(); @Override void setServerSaslCreds( byte[] serverSaslCreds ); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString();  }### Answer:
@Test public void testHashCodeSameObj() { BindResponseImpl resp = new BindResponseImpl( 1 ); assertTrue( resp.hashCode() == resp.hashCode() ); }
@Test public void testHashCodeNewWithSameId() { BindResponseImpl resp0 = new BindResponseImpl( 1 ); BindResponseImpl resp1 = new BindResponseImpl( 1 ); assertTrue( resp1.hashCode() == resp0.hashCode() ); }