### Question:
SortSkew { public static String getCode(String keypart) { int hashCode = murmur3_32().hashString(keypart, UTF_8).asInt(); return Strings.padStart(Integer.toHexString(hashCode), SORTSKEW_LENGTH, '0'); }  static String getCode(String keypart); static final int SORTSKEW_LENGTH; }### Answer:
@Test public void verifyCodeSize() { int expectedLength = SortSkew.SORTSKEW_LENGTH; assertEquals(expectedLength, SortSkew.getCode(shortpath).length()); assertEquals(expectedLength, SortSkew.getCode(longpath).length()); }
@Test public void verifySame() { assertEquals(SortSkew.getCode("123"), SortSkew.getCode("123")); assertNotEquals(SortSkew.getCode("123"), SortSkew.getCode("321")); }
@Test public void verifyStable() { assertEquals(shortcode, SortSkew.getCode(shortpath)); assertEquals(longcode, SortSkew.getCode(longpath)); }