void verifyRegionsUsingHTable() throws IOException {
      try (RegionLocator rl = connection.getRegionLocator(tableName)) {
        Pair<byte[][], byte[][]> keys = rl.getStartEndKeys();
        verifyStartEndKeys(keys);

        Set<RegionInfo> regions = new TreeSet<>(RegionInfo.COMPARATOR);
        for (HRegionLocation loc : rl.getAllRegionLocations()) {
          regions.add(loc.getRegion());
        }
        verifyTableRegions(regions);
      }
    }
verify region boundaries obtained from HTable.getStartEndKeys()
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestEndToEndSplitTransaction.java