private void verifyTtlUpdateFailure(MockId idToUpdate, long newExpiryTimeMs, StoreErrorCodes expectedErrorCode) {
    MessageInfo info = new MessageInfo(idToUpdate, TTL_UPDATE_RECORD_SIZE, false, true, false, newExpiryTimeMs, null,
        idToUpdate.getAccountId(), idToUpdate.getContainerId(), time.milliseconds(),
        MessageInfo.LIFE_VERSION_FROM_FRONTEND);
    try {
      store.updateTtl(Collections.singletonList(info));
      fail("Store TTL UPDATE should have failed");
    } catch (StoreException e) {
      assertEquals("Unexpected StoreErrorCode", expectedErrorCode, e.getErrorCode());
    }
  }
Verifies that TTL update fails.
@param idToUpdate the {@link MockId} to update the TTL for.
@param newExpiryTimeMs the new expiry time (in ms) of the blob.
@param expectedErrorCode the expected {@link StoreErrorCodes} for the failure.
ambry-store/src/test/java/com/github/ambry/store/BlobStoreTest.java