@Test
  public void testEquals() {
    assertTrue(!one.equals(two));
    assertTrue(!zero.equals(one));
    assertTrue(!zero.equals(two));

    assertEquals(zero, new SignedInt128(0));
    assertEquals(one, new SignedInt128(1));
    assertEquals(two, new SignedInt128(2));

    assertTrue(!one.equals(negativeOne));
    assertTrue(!two.equals(negativeTwo));
    assertEquals(zero, new SignedInt128(-0));
  }
Testcases for {@link SignedInt128}

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