public static HRegion createRegionAndWAL(final RegionInfo info, final Path rootDir,
    final Configuration conf, final TableDescriptor htd, boolean initialize) throws IOException {
    ChunkCreator.initialize(MemStoreLAB.CHUNK_SIZE_DEFAULT, false, 0, 0, 0, null,
      MemStoreLAB.INDEX_CHUNK_SIZE_PERCENTAGE_DEFAULT);
    WAL wal = createWal(conf, rootDir, info);
    return HRegion.createHRegion(info, rootDir, conf, htd, wal, initialize);
  }
Create a region with it's own WAL. Be sure to call
{@link HBaseTestingUtil#closeRegionAndWAL(HRegion)} to clean up all resources.
hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtil.java