void assertEqual(GetBlobResult result1, GetBlobResult result2) throws IOException {
    ReadableStreamChannel steamChannel1 = result1.getBlobDataChannel();
    ReadableStreamChannel steamChannel2 = result2.getBlobDataChannel();

    Assert.assertEquals(result1.getBlobInfo().getBlobProperties(), result2.getBlobInfo().getBlobProperties());
    Assert.assertTrue(Arrays.equals(result1.getBlobInfo().getUserMetadata(), result2.getBlobInfo().getUserMetadata()));

    long size = result1.getBlobInfo().getBlobProperties().getBlobSize();
    InputStream input1 = new ReadableStreamChannelInputStream(steamChannel1);
    InputStream input2 = new ReadableStreamChannelInputStream(steamChannel2);
    byte[] content1 = Utils.readBytesFromStream(input1, (int) size);
    byte[] content2 = Utils.readBytesFromStream(input2, (int) size);
    Assert.assertTrue(Arrays.equals(content1, content2));
  }
compare the two {@link GetBlobResult} and assert they are equal.
@param result1 the first {@link GetBlobResult}
@param result2 the second {@link GetBlobResult}
ambry-router/src/test/java/com/github/ambry/router/NonBlockingRouterTest.java