@Override
    public void beforeGoingToCompact() {
      try {
        beforeGoingToCompactLatch.await(5, MINUTES);
      } catch (Exception e) {
        errorCollector.addError(e);
      }
    }
Extracted {@code testCompactorClose} from {@link DiskRegionJUnitTest}.
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DiskRegionCompactorCloseIntegrationTest.java