@Test
  public void testHashCode() {
    assertNotEquals(one.hashCode(), two.hashCode());
    assertNotEquals(zero.hashCode(), one.hashCode());
    assertNotEquals(zero.hashCode(), two.hashCode());

    assertEquals(zero.hashCode(), new UnsignedInt128(0).hashCode());
    assertEquals(one.hashCode(), new UnsignedInt128(1).hashCode());
    assertEquals(two.hashCode(), new UnsignedInt128(2).hashCode());
  }
Testcases for {@link UnsignedInt128}

This code was based on code from Microsoft's PolyBase.
common/src/test/org/apache/hadoop/hive/common/type/TestUnsignedInt128.java