void reloadIndexAndVerifyState(boolean closeBeforeReload, boolean deleteCleanShutdownFile) throws StoreException {
    reloadIndex(closeBeforeReload, deleteCleanShutdownFile);
    verifyState(isLogSegmented);
  }
Reloads the index. Uses the class variables as parameters. For e.g, if a particular implementation of
{@link MessageStoreRecovery} is desired, it can be set to {@link #recovery} and this function called. The newly
created index will use that implementation of {@link MessageStoreRecovery}.
@param closeBeforeReload {@code true} if index should be closed before reload. {@code false} otherwise.
@param deleteCleanShutdownFile {@code true} if the clean shutdown file should be deleted to mimic unclean shutdown.
                                           Ignored if {@code closeBeforeReload} is {@code false}.
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/CuratedLogIndexState.java