private void compareContent(ReadableStreamChannel readableStreamChannel) throws Exception {
    ByteRange byteRange = options.getRange();
    if (options.hasBlobSegmentIdx()) {
      long offset = 0;
      long size = chunkInfos.get(0).getChunkSizeInBytes();
      for (int i = 0; i < options.getBlobSegmentIdx(); i++) {
        size = chunkInfos.get(i + 1).getChunkSizeInBytes();
        offset += chunkInfos.get(i).getChunkSizeInBytes();
      }
      if (options.getRange() == null) {
        byteRange = ByteRanges.fromOffsetRange(offset, offset + size - 1);
      } else {
        byteRange = byteRange.toResolvedByteRange(chunkInfos.get(options.getBlobSegmentIdx()).getChunkSizeInBytes());
        byteRange = ByteRanges.fromOffsetRange(byteRange.getStartOffset() + offset, byteRange.getEndOffset() + offset);
      }
    }
    RouterTestHelpers.compareContent(putContent, byteRange, readableStreamChannel);
  }
Compare and assert that the content in the given {@link ReadableStreamChannel} is exactly the same as
the original put content.
@param readableStreamChannel the {@link ReadableStreamChannel} that is the candidate for comparison.
ambry-router/src/test/java/com/github/ambry/router/GetManagerTest.java