private void doPutsOnVm(final VM vm, final String regionName, final int puts) {
    vm.invoke(new SerializableRunnable() {
      @Override
      public void run() {
        Region region = getCache().getRegion(regionName);
        assertNotNull(region);
        for (int i = 0; i < puts; ++i) {
          region.put(index++, PRE_COMPRESS_BYTES);
        }
      }
    });
  }
Does put operations on a designated virtual machine.

@param vm a virtual machine.
@param regionName a region for the puts.
@param puts the number of puts to perform.
geode-core/src/distributedTest/java/org/apache/geode/internal/compression/CompressionStatsDUnitTest.java