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