@Test
  public void testGetRegionInfoWithLargestEndKey() {
    assertTrue(MetaFixer.getRegionInfoWithLargestEndKey(_ARI, _BRI).equals(_BRI));
    assertTrue(MetaFixer.getRegionInfoWithLargestEndKey(C_RI, D_RI).equals(C_RI));
    assertTrue(MetaFixer.getRegionInfoWithLargestEndKey(ABRI, CDRI).equals(CDRI));
    assertTrue(MetaFixer.getRegionInfoWithLargestEndKey(null, CDRI).equals(CDRI));
    assertTrue(MetaFixer.getRegionInfoWithLargestEndKey(null, null) == null);
  }
Test small utility methods inside {@link MetaFixer}. For cluster tests see {@link TestMetaFixer}
hbase-server/src/test/java/org/apache/hadoop/hbase/master/janitor/TestMetaFixerNoCluster.java