IdGeneratorService { public HashCode getHash(long id) { return Hashing.murmur3_128().hashLong(id); }  synchronized long generate(int shardId); int getShard(long id); long getTimestamp(long id); HashCode getHash(long id);  }
@Test public void getHash() { IdGeneratorService service = new IdGeneratorService(); assertEquals(service.getHash(187525286248583168L).asLong(), -501962254452770615L); }