@Override
      public void run() {
        try {
          byte[] writeBuf = new byte[chunkSize];
          long written = 0;
          while (written < blobSize) {
            int toWrite = (int) Math.min(chunkSize, blobSize - written);
            putChannel.write(ByteBuffer.wrap(writeBuf, 0, toWrite));
            written += toWrite;
          }
        } catch (Exception e) {
          channelException.set(e);
        }
      }
Test the calculation of number of chunks and the size of each chunk, using a very large blob size. No content
comparison is done. This test does not consume memory more than chunkSize.
ambry-router/src/test/java/com/github/ambry/router/ChunkFillTest.java