private void assertRegionOneStats(final VM vm, final CompressionStats stats) {
    doPutsOnVm(vm, REGION_NAME, 100);

    stats.vmTotalCompressionTime = getTotalCompressionTimeOnVm(vm, null);
    assertTrue(stats.vmTotalCompressionTime > 0);

    stats.region1TotalCompressionTime = getTotalCompressionTimeOnVm(vm, REGION_NAME);
    assertTrue(stats.region1TotalCompressionTime > 0);

    stats.region2TotalCompressionTime = getTotalCompressionTimeOnVm(vm, REGION_NAME_2);
    assertEquals(0, stats.region2TotalCompressionTime);

    stats.vmTotalDecompressionTime = getTotalDecompressionTimeOnVm(vm, null);
    assertEquals(0, stats.vmTotalDecompressionTime);

    stats.region1TotalDecompressionTime = getTotalDecompressionTimeOnVm(vm, REGION_NAME);
    assertEquals(0, stats.region1TotalDecompressionTime);

    stats.region2TotalDecompressionTime = getTotalDecompressionTimeOnVm(vm, REGION_NAME_2);
    assertEquals(0, stats.region2TotalDecompressionTime);

    stats.vmTotalCompressions = getTotalCompressionsOnVm(vm, null);
    assertEquals(100, stats.vmTotalCompressions);

    stats.region1TotalCompressions = getTotalCompressionsOnVm(vm, REGION_NAME);
    assertEquals(100, stats.region1TotalCompressions);

    stats.region2TotalCompressions = getTotalCompressionsOnVm(vm, REGION_NAME_2);
    assertEquals(0, stats.region2TotalCompressions);

    stats.vmTotalDecompressions = getTotalDecompressionsOnVm(vm, null);
    assertEquals(0, stats.vmTotalDecompressions);

    stats.region1TotalDecompressions = getTotalDecompressionsOnVm(vm, REGION_NAME);
    assertEquals(0, stats.region1TotalDecompressions);

    stats.region2TotalDecompressions = getTotalDecompressionsOnVm(vm, REGION_NAME_2);
    assertEquals(0, stats.region2TotalDecompressions);

    stats.vmTotalPreCompressedBytes = getTotalPreCompressedBytesOnVm(vm, null);
    assertEquals(10200, stats.vmTotalPreCompressedBytes);

    stats.region1TotalPreCompressedBytes = getTotalPreCompressedBytesOnVm(vm, REGION_NAME);
    assertEquals(10200, stats.region1TotalPreCompressedBytes);

    stats.region2TotalPreCompressedBytes = getTotalPreCompressedBytesOnVm(vm, REGION_NAME_2);
    assertEquals(0, stats.region2TotalPreCompressedBytes);

    stats.vmTotalPostCompressedBytes = getTotalPostCompressedBytesOnVm(vm, null);
    assertEquals(5000, stats.vmTotalPostCompressedBytes);

    stats.region1TotalPostCompressedBytes = getTotalPostCompressedBytesOnVm(vm, REGION_NAME);
    assertEquals(5000, stats.region1TotalPostCompressedBytes);

    stats.region2TotalPostCompressedBytes = getTotalPostCompressedBytesOnVm(vm, REGION_NAME_2);
    assertEquals(0, stats.region2TotalPostCompressedBytes);
  }
Performs puts on region one and asserts that the second region's stats are unaffected and that
the region stats have rolled up to the cache stats.

@param vm the virtual machine to perform puts on.
@param stats holder for stat values.
geode-core/src/distributedTest/java/org/apache/geode/internal/compression/CompressionStatsDUnitTest.java