@Test
  public void testCalculateMergesNoAggregation() {
    List<Pair<RegionInfo, RegionInfo>> overlaps = new ArrayList<>();
    overlaps.add(new Pair<RegionInfo, RegionInfo>(_ARI, _BRI));
    overlaps.add(new Pair<RegionInfo, RegionInfo>(C_RI, D_RI));
    List<SortedSet<RegionInfo>> merges = MetaFixer.calculateMerges(10, overlaps);
    assertEquals(2, merges.size());
    assertEquals(2, merges.get(0).size());
    assertEquals(2, merges.get(1).size());
  }
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