### Question:
MessageHash implements Serializable { public void setHashBytes(final byte[] hashBytes) { this.hashBytes = Arrays.copyOf(hashBytes, hashBytes.length); } MessageHash();  MessageHash(final byte[] hashBytes); void setHashBytes(final byte[] hashBytes); byte[] getHashBytes(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void sameObjectIsEqualAccessors() { final MessageHash hash = new MessageHash(); hash.setHashBytes("I LOVE SPARROWS".getBytes()); assertThat(hash).isEqualTo(hash).hasSameHashCodeAs(hash); }