private void getRegionInfo(Table table) throws IOException {
    Get get = new Get(ROW_KEY);
    get.addColumn(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER);
    Result result = table.get(get);
    byte[] bytes = result.value();
    validateRegionInfo(bytes);
  }
Use get to retrieve the HRegionInfo and validate it
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestScanner.java