private void reloadStore(StoreConfig config, ReplicaId replicaId, List<ReplicaStatusDelegate> delegates)
      throws StoreException {
    if (store.isStarted()) {
      store.shutdown();
    }
    assertFalse("Store should be shutdown", store.isStarted());
    store = createBlobStore(replicaId, config, delegates);
    assertEquals("Store should be in OFFLINE state after creation", OFFLINE, store.getCurrentState());
    assertFalse("Store should not be started", store.isStarted());
    store.start();
    assertTrue("Store should be started", store.isStarted());
  }
Shuts down and restarts the store. All further tests will implicitly test persistence.
@param config the {@link StoreConfig} to use
@param replicaId the {@link ReplicaId} for which the store is being created
@param delegates a list of {@link ReplicaStatusDelegate}(s) to use
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/BlobStoreTest.java