public static ByteBuffer getUndeleteMessage(StoreKey id, short accountId, short containerId, short lifeVersion,
      long undeleteTimeMs) throws MessageFormatException, IOException {
    MessageFormatInputStream stream =
        new UndeleteMessageFormatInputStream(id, accountId, containerId, undeleteTimeMs, lifeVersion);
    byte[] message = Utils.readBytesFromStream(stream, (int) stream.getSize());
    return ByteBuffer.wrap(message);
  }
Returns a TTL update message for the given {@code id}
@param id the id for which a ttl update message must be constructed.
@param accountId the account that the blob is associated with
@param containerId the container that the blob is associated with
@param expiresAtMs the new expiry time (ms)
@param updateTimeMs the time of the update (in ms)
@return {@link ByteBuffer} representing the entire message.
@throws MessageFormatException
@throws IOException
ambry-replication/src/test/java/com/github/ambry/replication/ReplicationTestHelper.java