private Region createRegion(String name, Compressor compressor) {
    Properties configProperties = new Properties();
    configProperties.setProperty(ENABLE_TIME_STATISTICS, "true");
    return getCache(configProperties).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/CompressionStatsDUnitTest.java