@Test
public void testCompareTo() {

    long value1 = TestData.getLong();
    value1 = value1 == Long.MAX_VALUE ? value1 - 1 : value1;
    long value2 = value1 + 1;
    PrimaryKey key1 = PrimaryKey.wrap(value1);
    PrimaryKey key2 = PrimaryKey.wrap(value2);
    Assert.assertTrue(key1.compareTo(key2) < 0);
}