@Test
  public void shutdownBlobStoreTest() throws IOException {
    CloudStorageManager cloudStorageManager = createNewCloudStorageManager();
    ReplicaId mockReplicaId = clusterMap.getReplicaIds(clusterMap.getDataNodeIds().get(0)).get(0);
    PartitionId partitionId = mockReplicaId.getPartitionId();

    //try shutdown for a store of partition that was never added
    Assert.assertFalse(cloudStorageManager.shutdownBlobStore(partitionId));

    //add and start a replica to the store
    Assert.assertTrue(cloudStorageManager.addBlobStore(mockReplicaId));

    //try shutdown for a store of partition that was added
    Assert.assertTrue(cloudStorageManager.shutdownBlobStore(partitionId));

    //try shutdown for a removed partition
    Assert.assertTrue(cloudStorageManager.removeBlobStore(partitionId));
    Assert.assertFalse(cloudStorageManager.shutdownBlobStore(partitionId));
  }
Test {@code CloudStorageManager#shutdownBlobStore}
@throws IOException
ambry-vcr/src/test/java/com/github/ambry/vcr/CloudStorageManagerTest.java