NamePageHash { public static int generateHashForString(final String name) { return name.hashCode(); } private  NamePageHash(); static int[] generateOffsets(final int key); static int generateHashForString(final String name);  }
@Test public void testGenerateHashForString() { final int hash = "foo".hashCode(); assertEquals(hash, NamePageHash.generateHashForString("foo")); }