NamePageHash { public static int[] generateOffsets(final int key) { final int[] returnval = new int[2]; returnval[0] = key & 127; returnval[1] = (key >> 7) & 127; return returnval; } private  NamePageHash(); static int[] generateOffsets(final int key); static int generateHashForString(final String name);  }
@Test public void testGenerateHashCodes() { final int[] hashes = {70, 25}; assertArrayEquals(hashes, NamePageHash.generateOffsets("foo".hashCode())); }