private void verifyBlobUserMetadata(byte[] userMetadata, ByteBuffer result) {
    for (int i = 0; i < userMetadata.length; i++) {
      Assert.assertEquals(userMetadata[i], result.get());
    }
  }
Test Exceptions cases for {@link MessageReadSetIndexInputStream}
IndexOutOfBoundsException should be thrown if offset or length is invalid.
0 is expected if length requested is 0.
-1 is expected if no more data available.
ambry-messageformat/src/test/java/com/github/ambry/messageformat/MessageFormatSendTest.java