LongMurmur3Hash implements DigestFunction<Long> { @Override public long computeDigest(Long input) { return hasher.hash(input); }  static LongMurmur3Hash getInstance(); @Override long computeDigest(Long input);  }
@Test(groups = "fast") public void testConsistency() throws Exception { LongMurmur3Hash longMurmur3Hash1 = new LongMurmur3Hash(); LongMurmur3Hash longMurmur3Hash2 = new LongMurmur3Hash(); for (long i = 0; i < 1000; i++) { Assert.assertEquals( longMurmur3Hash1.computeDigest(i), longMurmur3Hash2.computeDigest(i), String.format("Hashes don't match for %d", i)); } }