@After
  public void cleanup() throws InterruptedException, IOException, StoreException {
    indexScannerScheduler.shutdown();
    if (!indexScannerScheduler.awaitTermination(1000, TimeUnit.MILLISECONDS)) {
      fail("Could not terminate index scanner task after BlobStoreStats shutdown");
    }
    queueProcessorScheduler.shutdown();
    if (!queueProcessorScheduler.awaitTermination(1000, TimeUnit.MILLISECONDS)) {
      fail("Could not terminate queue processor task after BlobStoreStats shutdown");
    }
    state.destroy();
    assertTrue(tempDir.getAbsolutePath() + " could not be deleted", StoreTestUtils.cleanDirectory(tempDir, true));
  }
Releases all resources and deletes the temporary directory.
@throws InterruptedException
@throws IOException
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/BlobStoreStatsTest.java