@Test
  public void testChannelSizeNotSizeInPropertiesPutSuccess() throws Exception {
    int[] actualBlobSizes = {0, chunkSize - 1, chunkSize, chunkSize + 1, chunkSize * 2, chunkSize * 2 + 1};
    for (int actualBlobSize : actualBlobSizes) {
      int[] sizesInProperties = {actualBlobSize - 1, actualBlobSize + 1};
      for (int sizeInProperties : sizesInProperties) {
        requestAndResultsList.clear();
        RequestAndResult requestAndResult = new RequestAndResult(0);
        // Change the actual content size.
        requestAndResult.putContent = new byte[actualBlobSize];
        requestAndResult.putBlobProperties =
            new BlobProperties(sizeInProperties, "serviceId", "memberId", "contentType", false, Utils.Infinite_Time,
                Utils.getRandomShort(TestUtils.RANDOM), Utils.getRandomShort(TestUtils.RANDOM), false,
                EXTERNAL_ASSET_TAG, null, null);
        random.nextBytes(requestAndResult.putContent);
        requestAndResultsList.add(requestAndResult);
        submitPutsAndAssertSuccess(true);
      }
    }
  }
Test that the size in BlobProperties is ignored for puts, by attempting puts with varying values for size in
BlobProperties.
ambry-router/src/test/java/com/github/ambry/router/PutManagerTest.java