public static void checkTtlUpdateMessage(InputStream stream, Long expectedRecordSize, StoreKey key, short accountId,
      short containerId, long updatedExpiresAtMs, long updateTimeMs, short lifeVersion)
      throws IOException, MessageFormatException {
    checkHeaderAndStoreKeyForUpdate(stream, expectedRecordSize, key, lifeVersion);
    checkTtlUpdateSubRecord(stream, accountId, containerId, updatedExpiresAtMs, updateTimeMs);
  }
Checks a TTL update message including headers and the {@link UpdateRecord}.
@param stream the {@link InputStream} to read data from
@param expectedRecordSize the expected size of the record in the message. Can be {@code null} if unknown (won't be
                           checked)
@param key the expected {@link StoreKey}
@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
@param lifeVersion the life version of this update.
@throws IOException
@throws MessageFormatException
ambry-messageformat/src/test/java/com/github/ambry/messageformat/MessageFormatInputStreamTest.java