@Test
  public void testInValidDeletedAndExpiredBlobsAgainstCorruption() throws Exception {
    testInValidDeletedAndExpiredBlobs(Blob_Version_V3, BlobType.DataBlob, MessageFormatRecord.Message_Header_Version_V2);
    testInValidDeletedAndExpiredBlobs(Blob_Version_V3, BlobType.MetadataBlob, MessageFormatRecord.Message_Header_Version_V2);
    testInValidDeletedAndExpiredBlobs(Blob_Version_V3, BlobType.DataBlob, MessageFormatRecord.Message_Header_Version_V3);
    testInValidDeletedAndExpiredBlobs(Blob_Version_V3, BlobType.MetadataBlob, MessageFormatRecord.Message_Header_Version_V3);
  }
Test the case where there are corrupt messages, messages that are deleted and messages that are expired.
ambry-messageformat/src/test/java/com/github/ambry/messageformat/MessageSievingInputStreamTest.java