private StorageManager initializeStorageManagerForStateBuildTests(int newMountPathIndex) throws Exception {
    generateConfigs(true, false);
    MockDataNodeId localNode = clusterMap.getDataNodes().get(0);
    // add new MountPath to local node
    File f = File.createTempFile("ambry", ".tmp");
    File mountFile =
        new File(f.getParent(), "mountpathfile" + MockClusterMap.PLAIN_TEXT_PORT_START_NUMBER + newMountPathIndex);
    MockClusterMap.deleteFileOrDirectory(mountFile);
    assertTrue("Couldn't create mount path directory", mountFile.mkdir());
    localNode.addMountPaths(Collections.singletonList(mountFile.getAbsolutePath()));

    StorageManager storageManager = createStorageManager(localNode, metricRegistry, null);
    storageManager.start();
    return storageManager;
  }
Helper util to add blobs to a given Store
@param store store to add blob to.
@param size size in bytes of the randomized blob
@param expiresAtMs expiry in milliseconds to be set for the blob
@return {@link MockId} the mock id of the blob added
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/StorageManagerTest.java