private static void checkUndeleteSubRecord(InputStream stream, short accountId, short containerId, long updateTimeMs)
      throws Exception {
    UpdateRecord updateRecord = MessageFormatRecord.deserializeUpdateRecord(stream);
    Assert.assertEquals("Type of update record not UNDELETE", SubRecord.Type.UNDELETE, updateRecord.getType());
    Assert.assertNotNull("UndeleteSubRecord should not be null", updateRecord.getUndeleteSubRecord());
    Assert.assertEquals("AccountId mismatch", accountId, updateRecord.getAccountId());
    Assert.assertEquals("ContainerId mismatch", containerId, updateRecord.getContainerId());
    Assert.assertEquals("UpdateTime mismatch", updateTimeMs, updateRecord.getUpdateTimeInMs());
  }
Verifies the values in the {@link UpdateRecord} obtained from {@code stream} for undelete.
@param stream the {@link InputStream} to obtain the records from
@param accountId the account id expected
@param containerId the container id expected
@param updateTimeMs the expected time of update
@throws Exception any error.
ambry-messageformat/src/test/java/com/github/ambry/messageformat/MessageFormatInputStreamTest.java