### Question:
ChunkHash implements Comparable<ChunkHash> { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ChunkHash)) { return false; } ChunkHash chunkHash = (ChunkHash) o; return Arrays.equals(mHash, chunkHash.mHash); } ChunkHash(byte[] hash); byte[] getHash(); @Override boolean equals(Object o); @Override int hashCode(); @Override int compareTo(ChunkHash other); @Override String toString(); static final int HASH_LENGTH_BYTES; }### Answer:
@Test public void testEquals() { ChunkHash chunkHash1 = new ChunkHash(TEST_HASH_1); ChunkHash equalChunkHash1 = new ChunkHash(TEST_HASH_1); ChunkHash chunkHash2 = new ChunkHash(TEST_HASH_2); assertThat(chunkHash1).isEqualTo(equalChunkHash1); assertThat(chunkHash1).isNotEqualTo(chunkHash2); }