public List<HRegion> findRegionsForTable(TableName tableName) {
    ArrayList<HRegion> ret = new ArrayList<>();
    for (JVMClusterUtil.RegionServerThread rst : getRegionServerThreads()) {
      HRegionServer hrs = rst.getRegionServer();
      for (Region region : hrs.getRegions(tableName)) {
        if (region.getTableDescriptor().getTableName().equals(tableName)) {
          ret.add((HRegion) region);
        }
      }
    }
    return ret;
  }
Do a simulated kill all masters and regionservers. Useful when it is impossible to bring the
mini-cluster back for clean shutdown.
hbase-testing-util/src/main/java/org/apache/hadoop/hbase/MiniHBaseCluster.java