private void assertCompressor(final VM vm, final String name, final Compressor compressor) {
    vm.invoke(new SerializableRunnable() {
      @Override
      public void run() {
        Region region = getCache().getRegion(name);
        assertNotNull(region);
        assertNotNull(region.getAttributes().getCompressor());
        assertTrue(compressor.equals(region.getAttributes().getCompressor()));
      }
    });
  }
Asserts that a given compressor has been assigned to a region.

@param vm the virtual machine to run the assertions on.
@param name a region name.
@param compressor a compressor.
geode-core/src/distributedTest/java/org/apache/geode/internal/compression/CompressionRegionFactoryDUnitTest.java