public HRegion createLocalHRegion(TableDescriptor desc, byte[] startKey, byte[] endKey)
    throws IOException {
    RegionInfo hri = RegionInfoBuilder.newBuilder(desc.getTableName()).setStartKey(startKey)
      .setEndKey(endKey).build();
    return createLocalHRegion(hri, desc);
  }
Create an HRegion that writes to the local tmp dirs
@param desc     a table descriptor indicating which table the region belongs to
@param startKey the start boundary of the region
@param endKey   the end boundary of the region
@return a region that writes to local dir for testing
hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtil.java