@Test
  public void testCompositeBlobNotChunkSizeMultiplePutSuccess() throws Exception {
    for (int i = 1; i < 10; i++) {
      requestAndResultsList.clear();
      requestAndResultsList.add(new RequestAndResult(chunkSize * i + random.nextInt(chunkSize - 1) + 1));
      mockClusterMap.clearLastNRequestedPartitionClasses();
      submitPutsAndAssertSuccess(true);
      // since the puts are processed one "large" blob at a time, it is fair to check the last partition classes set
      checkLastRequestPartitionClasses(i + 2, MockClusterMap.DEFAULT_PARTITION_CLASS, false);
    }
    Assert.assertEquals("Metrics should show creation of metadata chunk", 1,
        metrics.metadataChunkCreationCount.getCount());
  }
Tests put of a composite blob where the blob size is not a multiple of the chunk size.
ambry-router/src/test/java/com/github/ambry/router/PutManagerTest.java