private void closeCache(final VM memberVM) {
    memberVM.invoke("closeRegion", () -> {
      Cache cache = managementTestRule.getCache();
      Region region = cache.getRegion(REGION_NAME);
      cache.close();
    });
  }
Compact a disk store from managerVM VM
geode-core/src/distributedTest/java/org/apache/geode/management/DiskManagementDUnitTest.java