private static void checkTtlUpdateSubRecord(InputStream stream, short accountId, short containerId,
      long updatedExpiresAtMs, long updateTimeMs) throws IOException, MessageFormatException {
    UpdateRecord updateRecord = MessageFormatRecord.deserializeUpdateRecord(stream);
    Assert.assertEquals("Type of update record not TTL_UPDATE", SubRecord.Type.TTL_UPDATE, updateRecord.getType());
    Assert.assertNotNull("TtlUpdateSubRecord should not be null", updateRecord.getTtlUpdateSubRecord());
    Assert.assertEquals("AccountId mismatch", accountId, updateRecord.getAccountId());
    Assert.assertEquals("ContainerId mismatch", containerId, updateRecord.getContainerId());
    Assert.assertEquals("Updated expiry time mismatch", updatedExpiresAtMs,
        updateRecord.getTtlUpdateSubRecord().getUpdatedExpiryTimeMs());
    Assert.assertEquals("UpdateTime mismatch", updateTimeMs, updateRecord.getUpdateTimeInMs());
  }
Verifies the values in the {@link UpdateRecord} obtained from {@code stream} for ttl update.
@param stream the {@link InputStream} to obtain the records from
@param accountId the account id expected
@param containerId the container id expected
@param updatedExpiresAtMs the expected updated expiry time
@param updateTimeMs the expected time of update
@throws IOException
@throws MessageFormatException
ambry-messageformat/src/test/java/com/github/ambry/messageformat/MessageFormatInputStreamTest.java