private void verifyUndeleteFailure(MockId idToUndelete, StoreErrorCodes expectedErrorCode) {
    MessageInfo info =
        new MessageInfo(idToUndelete, UNDELETE_RECORD_SIZE, idToUndelete.getAccountId(), idToUndelete.getContainerId(),
            time.milliseconds(), MessageInfo.LIFE_VERSION_FROM_FRONTEND);
    try {
      store.undelete(info);
      fail("Store UNDELETE should have failed for key " + idToUndelete);
    } catch (StoreException e) {
      assertEquals("Unexpected StoreErrorCode", expectedErrorCode, e.getErrorCode());
      if (expectedErrorCode == StoreErrorCodes.IDUndeleted) {
        assertTrue(e instanceof IdUndeletedStoreException);
      }
    }
  }
Verifies that UNDELETE fails.
@param idToUndelete the {@link MockId} to UNDELETE.
@param expectedErrorCode the expected {@link StoreErrorCodes} for the failure.
ambry-store/src/test/java/com/github/ambry/store/BlobStoreTest.java