private void compareContent(ByteBuffer contentToCheck, List<ByteBuffer> srcOfTruth) {
    ByteBuffer truth;
    int counter = 0;
    truth = srcOfTruth.get(counter++);
    while (contentToCheck.hasRemaining()) {
      if (!truth.hasRemaining()) {
        truth = srcOfTruth.get(counter++);
      }
      assertEquals("Byte in actual content differs from original content", truth.get(), contentToCheck.get());
    }
  }
Compares {@code contentToCheck} to {@code srcOfTruth}.
@param contentToCheck the content that needs to be checked against the {@code srcOfTruth}.
@param srcOfTruth the original content.
ambry-rest/src/test/java/com/github/ambry/rest/NettyMessageProcessorTest.java