@Test
  public void hardDeleteNullTest() throws StoreException {
    state.hardDelete = null;
    state.reloadIndex(true, false);
    state.addPutEntries(1, CuratedLogIndexState.PUT_RECORD_SIZE, Utils.Infinite_Time);
    MockId idToCheck = state.logOrder.lastEntry().getValue().getFirst();
    state.reloadIndex(true, false);
    verifyValue(idToCheck, state.index.findKey(idToCheck));
  }
Test that verifies that everything is ok even if {@link MessageStoreHardDelete} instance provided is null.
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/IndexTest.java