private BlobStore createAndStartBlobStore() throws StoreException, IOException {
    store.shutdown();
    File testDir = createTempDirectory("testStoreDir-" + storeId);
    testDir.deleteOnExit();
    MockReplicaId testReplica = getMockReplicaId(testDir.getAbsolutePath());
    BlobStore blobStore = createBlobStore(testReplica);
    blobStore.start();

    assertTrue("Store should start successfully", blobStore.isStarted());
    return blobStore;
  }
A test util method to create and start a BlobStore.
@throws StoreException
@throws IOException
ambry-store/src/test/java/com/github/ambry/store/BlobStoreTest.java