@Test
  public void initializationErrorDueToDiskHealth() throws Exception {
    MockDataNodeId dataNode = clusterMap.getDataNodes().get(0);
    List<String> mountPaths = dataNode.getMountPaths();
    for (String mountPathToDelete : mountPaths) {
      Utils.deleteFileOrDirectory(new File(mountPathToDelete));
    }
    StorageManager storageManager = createStorageManager(dataNode, metricRegistry, null);
    try {
      storageManager.start();
      fail("Should fail due to disk health");
    } catch (StoreException e) {
      assertEquals(StoreErrorCodes.InitializationError, e.getErrorCode());
    }
  }
Test the case where disk failures surpass threshold to fail initialization
@throws Exception
ambry-store/src/test/java/com/github/ambry/store/StorageManagerTest.java