private ByteBuffer getSerializedMetadataContentV3(long totalSize, List<Pair<StoreKey, Long>> keysAndContentSizes) {
    int size = MessageFormatRecord.Metadata_Content_Format_V3.getMetadataContentSize(
        keysAndContentSizes.get(0).getFirst().sizeInBytes(), keysAndContentSizes.size());
    ByteBuffer metadataContent = ByteBuffer.allocate(size);
    MessageFormatRecord.Metadata_Content_Format_V3.serializeMetadataContentRecord(metadataContent, totalSize,
        keysAndContentSizes);
    metadataContent.flip();
    return metadataContent;
  }
Tests UpdateRecord V3 for serialization and deserialization
@throws IOException
@throws MessageFormatException
ambry-messageformat/src/test/java/com/github/ambry/messageformat/MessageFormatRecordTest.java