public static ByteBuffer getDeleteMessage(StoreKey id, short accountId, short containerId, long deletionTimeMs,
      short lifeVersion) throws MessageFormatException, IOException {
    MessageFormatInputStream stream =
        new DeleteMessageFormatInputStream(id, accountId, containerId, deletionTimeMs, lifeVersion);
    byte[] message = Utils.readBytesFromStream(stream, (int) stream.getSize());
    return ByteBuffer.wrap(message);
  }
Returns a delete message for the given {@code id}
@param id the id for which a delete message must be constructed.
@return {@link ByteBuffer} representing the entire message.
@throws MessageFormatException
@throws IOException
ambry-replication/src/test/java/com/github/ambry/replication/ReplicationTestHelper.java