private List<RegionInfo> getRegions(TableName tableName) throws IOException {
    try (Admin admin = getConnection().getAdmin()) {
      return admin.getRegions(tableName);
    }
  }
Returns all regions of the specified table
@param tableName the table name
@return all regions of the specified table
@throws IOException when getting the regions fails.
hbase-testing-util/src/main/java/org/apache/hadoop/hbase/HBaseTestingUtility.java