private void checkStoreAccessibility(List<ReplicaId> replicas, String badDiskMountPath,
      StorageManager storageManager) {
    for (ReplicaId replica : replicas) {
      PartitionId id = replica.getPartitionId();
      if (replica.getMountPath().equals(badDiskMountPath)) {
        assertNull("This store should not be accessible.", storageManager.getStore(id, false));
        assertFalse("Compaction should not be scheduled", storageManager.scheduleNextForCompaction(id));
      } else {
        Store store = storageManager.getStore(id, false);
        assertTrue("Store should be started", store.isStarted());
        assertTrue("Compaction should be scheduled", storageManager.scheduleNextForCompaction(id));
      }
    }
  }
Check that stores on a bad disk are not accessible and that all other stores are accessible.
@param replicas a list of all {@link ReplicaId}s on the node.
@param badDiskMountPath the disk mount path that should have caused failures or {@code null} if all disks are fine.
@param storageManager the {@link StorageManager} to test.
ambry-store/src/test/java/com/github/ambry/store/StorageManagerTest.java