private static List<byte[]> getBuffers(int... chunkSizes) {
    return Arrays.stream(chunkSizes).mapToObj(TestUtils::getRandomBytes).collect(Collectors.toList());
  }
Get a list of byte arrays of the provided sizes.
@param chunkSizes the size in bytes for each chunk.
@return the list of buffers.
ambry-commons/src/test/java/com/github/ambry/commons/RetainingAsyncWritableChannelTest.java