@Test
  public void testCompressionStats() {
    VM vm = Host.getHost(0).getVM(TEST_VM);

    assertTrue(createCompressedRegionOnVm(vm, REGION_NAME, new StatCompressor()));
    assertTrue(createCompressedRegionOnVm(vm, REGION_NAME_2, new StatCompressor()));

    CompressionStats stats = new CompressionStats();

    assertStartingValues(vm);
    assertRegionOneStats(vm, stats);
    assertRegionTwoStats(vm, stats);
    assertRegionOneStatsAfterGets(vm, stats);
    assertStatTotals(stats);

    destroyRegionOnVm(vm, REGION_NAME);
    destroyRegionOnVm(vm, REGION_NAME_2);
  }
Asserts that compression stats are functioning properly.
geode-core/src/distributedTest/java/org/apache/geode/internal/compression/CompressionStatsDUnitTest.java