@Override
    public long control(String compactionName, long size) throws InterruptedException {
      Thread.sleep(6000000);
      return 6000000;
    }
Simple {@link CompactionLifeCycleTracker} on which you can wait until the requested compaction
finishes.
hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestCompaction.java