### Question:
CompactionManager { void controlCompactionForBlobStore(BlobStore store, boolean enable) { if (compactionExecutor != null) { compactionExecutor.controlCompactionForBlobStore(store, enable); } } CompactionManager(String mountPath, StoreConfig storeConfig, Collection<BlobStore> stores,
      StorageManagerMetrics metrics, Time time);   }### Answer:
@Test public void testControlCompactionForBlobStore() { compactionManager.enable(); compactionManager.controlCompactionForBlobStore(blobStore, false); compactionManager.disable(); compactionManager.awaitTermination(); properties.setProperty("store.compaction.triggers", ALL_COMPACTION_TRIGGERS); config = new StoreConfig(new VerifiableProperties(properties)); StorageManagerMetrics metrics = new StorageManagerMetrics(new MetricRegistry()); compactionManager = new CompactionManager(MOUNT_PATH, config, Collections.singleton(blobStore), metrics, time); compactionManager.enable(); compactionManager.controlCompactionForBlobStore(blobStore, false); assertFalse("BlobStore should not be scheduled after compaction is disabled on it", compactionManager.scheduleNextForCompaction(blobStore)); compactionManager.controlCompactionForBlobStore(blobStore, true); assertTrue("BlobStore should be scheduled after compaction is enabled on it", compactionManager.scheduleNextForCompaction(blobStore)); compactionManager.disable(); compactionManager.awaitTermination(); }