@Test
  public void commonCaseTest() throws Exception {
    int[] sizes = {0, 1024 * CONTENT_SPLIT_PART_COUNT};
    for (int size : sizes) {
      byte[] in = new byte[size];
      new Random().nextBytes(in);
      readByteByByteTest(in);
      readPartByPartTest(in);
      readAllAtOnceTest(in);
    }
  }
Tests the common cases i.e reading byte by byte, reading by parts and reading all at once.
@throws Exception
ambry-commons/src/test/java/com/github/ambry/commons/ReadableStreamChannelInputStreamTest.java