@Test
  public void shutdownTest() throws StoreException {
    store.shutdown();
    File cleanShutDownFile = new File(tempDir, PersistentIndex.CLEAN_SHUTDOWN_FILENAME);
    assertTrue("Clean shutdown file should exist.", cleanShutDownFile.exists());
    // no operations should be possible if store is not up or has been shutdown
    verifyOperationFailuresOnInactiveStore(store, StoreErrorCodes.StoreNotInitialized);
    store = createBlobStore(getMockReplicaId(tempDirStr));
    verifyOperationFailuresOnInactiveStore(store, StoreErrorCodes.StoreNotInitialized);

    store = createBlobStore(getMockReplicaId(tempDirStr));
    store.initialize();
    verifyOperationFailuresOnInactiveStore(store, StoreErrorCodes.StoreNotStarted);
  }
Tests store shutdown and the ability to do operations when a store is shutdown or has not been started yet.
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/BlobStoreTest.java