HashUtils { public int hash(byte[] bytes) { hash.reset(); hash.update(bytes); return hash.getIntValue() & 0x7fffffff; }  int hash(byte[] bytes);  }
@Test public void testHashEquals() { Assert.assertEquals(hashUtils.hash("foo".getBytes()), hashUtils.hash("foo".getBytes())); }
@Test public void testEmpty() { Assert.assertTrue(hashUtils.hash(new byte[0]) > 0); }