private Region createRegion(String name, Compressor compressor) {
    return getCache().<String, String>createRegionFactory().setDataPolicy(DataPolicy.REPLICATE)
        .setCloningEnabled(true).setCompressor(compressor).create(name);
  }
Creates a region and assigns a compressor.

@param name a region name.
@param compressor a compressor.
geode-core/src/distributedTest/java/org/apache/geode/internal/compression/CompressionRegionFactoryDUnitTest.java