private void ensureArgumentFailure(CompactionDetails details, String msg) throws Exception {
    compactor = getCompactor(state.log, DISK_IO_SCHEDULER, null, false);
    compactor.initialize(state.index);
    try {
      compactor.compact(details, bundleReadBuffer);
      fail(msg);
    } catch (IllegalArgumentException e) {
      // expected. Nothing to do.
    } finally {
      compactor.close(0);
    }
  }
Ensures that {@link BlobStoreCompactor#compact(CompactionDetails, byte[])} fails because {@code details} is invalid.
@param details the invalid {@link CompactionDetails}
@param msg the message to print on failure if no exception is thrown.
@throws Exception
ambry-store/src/test/java/com/github/ambry/store/BlobStoreCompactorTest.java