@Test
  public void testEqualsInstance() {
    HbckRegionInfo hi1 = genHbckInfo(table, keyA, keyB, 0);
    HbckRegionInfo hi2 = hi1;
    assertEquals(0, HbckRegionInfo.COMPARATOR.compare(hi1, hi2));
    assertEquals(0, HbckRegionInfo.COMPARATOR.compare(hi2, hi1));
  }
Test the comparator used by Hbck.
hbase-server/src/test/java/org/apache/hadoop/hbase/util/TestHBaseFsckComparator.java