@Test
  public void resumeCompactionWithoutAnyInProgressTest() throws Exception {
    refreshState(false, true, false);
    compactor = getCompactor(state.log, DISK_IO_SCHEDULER, null, false);
    compactor.initialize(state.index);
    assertFalse("Compaction should not be in progress", CompactionLog.isCompactionInProgress(tempDirStr, STORE_ID));
    assertEquals("Temp log segment should not be found", 0, compactor.getSwapSegmentsInUse().length);
    try {
      compactor.resumeCompaction(bundleReadBuffer);
      fail("Should have failed because there is no compaction in progress");
    } catch (IllegalStateException e) {
      // expected. Nothing to do.
    } finally {
      compactor.close(0);
    }
  }
Tests the case where {@link BlobStoreCompactor#resumeCompaction(byte[])} is called without any compaction being in
progress.
@throws Exception
ambry-store/src/test/java/com/github/ambry/store/BlobStoreCompactorTest.java