private void compareBlobInfo(BlobInfo blobInfo, long segmentSize) {
    Assert.assertTrue("Blob properties should match",
        RouterTestHelpers.arePersistedFieldsEquivalent(putBlobProperties, blobInfo.getBlobProperties()));
    Assert.assertEquals("Blob size in received blobProperties should be the same as actual",
        (segmentSize == -1) ? blobSize : segmentSize, blobInfo.getBlobProperties().getBlobSize());
    Assert.assertArrayEquals("User metadata should match", putUserMetadata, blobInfo.getUserMetadata());
  }
Compare and assert that the properties and user metadata in the given {@link BlobInfo} is exactly the same as
the original put properties and metadata.
@param blobInfo the {@link ReadableStreamChannel} that is the candidate for comparison.
ambry-router/src/test/java/com/github/ambry/router/GetManagerTest.java