### Question:
ChunkHash implements Comparable<ChunkHash> { @Override public int hashCode() { return Arrays.hashCode(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 testHashCode() { ChunkHash chunkHash1 = new ChunkHash(TEST_HASH_1); ChunkHash equalChunkHash1 = new ChunkHash(TEST_HASH_1); ChunkHash chunkHash2 = new ChunkHash(TEST_HASH_2); int hash1 = chunkHash1.hashCode(); int equalHash1 = equalChunkHash1.hashCode(); int hash2 = chunkHash2.hashCode(); assertThat(hash1).isEqualTo(equalHash1); assertThat(hash1).isNotEqualTo(hash2); }