private void validateRegionInfo(byte[] regionBytes) throws IOException {
    RegionInfo info = RegionInfo.parseFromOrNull(regionBytes);

    assertEquals(REGION_INFO.getRegionId(), info.getRegionId());
    assertEquals(0, info.getStartKey().length);
    assertEquals(0, info.getEndKey().length);
    assertEquals(0, Bytes.compareTo(info.getRegionName(), REGION_INFO.getRegionName()));
    // assertEquals(0, info.getTableDesc().compareTo(REGION_INFO.getTableDesc()));
  }
Compare the HRegionInfo we read from HBase to what we stored
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestScanner.java