@Test
  public void messageFormatPutRecordsTest() throws IOException, MessageFormatException {
    messageFormatPutRecordsTest(MessageFormatRecord.Blob_Version_V1, BlobType.DataBlob,
        MessageFormatRecord.Message_Header_Version_V1, false);

    messageFormatPutRecordsTest(MessageFormatRecord.Blob_Version_V3, BlobType.DataBlob, MessageFormatRecord.Message_Header_Version_V1, true);
    messageFormatPutRecordsTest(MessageFormatRecord.Blob_Version_V3, BlobType.MetadataBlob, MessageFormatRecord.Message_Header_Version_V1, true);
    messageFormatPutRecordsTest(MessageFormatRecord.Blob_Version_V3, BlobType.DataBlob, MessageFormatRecord.Message_Header_Version_V2, true);
    messageFormatPutRecordsTest(MessageFormatRecord.Blob_Version_V3, BlobType.MetadataBlob, MessageFormatRecord.Message_Header_Version_V2, true);
    messageFormatPutRecordsTest(MessageFormatRecord.Blob_Version_V3, BlobType.DataBlob, MessageFormatRecord.Message_Header_Version_V3, true);
    messageFormatPutRecordsTest(MessageFormatRecord.Blob_Version_V3, BlobType.MetadataBlob, MessageFormatRecord.Message_Header_Version_V3, true);
  }
Tests for {@link PutMessageFormatInputStream} in different versions.
ambry-messageformat/src/test/java/com/github/ambry/messageformat/MessageFormatInputStreamTest.java