private void assertSuccess() throws Exception {
    // Go through all the requests received by all the servers and ensure that all requests for the same blob id are
    // identical. In the process also fill in the map of blobId to serializedPutRequests.
    HashMap<String, ByteBuffer> allChunks = new HashMap<>();
    for (MockServer mockServer : mockServerLayout.getMockServers()) {
      for (Map.Entry<String, StoredBlob> blobEntry : mockServer.getBlobs().entrySet()) {
        ByteBuffer chunk = allChunks.get(blobEntry.getKey());
        if (chunk == null) {
          allChunks.put(blobEntry.getKey(), blobEntry.getValue().serializedSentPutRequest);
        } else {
          Assert.assertTrue("All requests for the same blob id must be identical except for correlation id",
              areIdenticalPutRequests(chunk.array(), blobEntry.getValue().serializedSentPutRequest.array()));
        }
      }
    }

    // Go through each request, and ensure all of them have succeeded.
    for (RequestAndResult requestAndResult : requestAndResultsList) {
      String blobId = requestAndResult.result.join();
      Assert.assertNotNull("blobId should not be null", blobId);
      verifyBlob(requestAndResult, allChunks);
    }
  }
Go through all the requests and ensure all of them have succeeded.
ambry-router/src/test/java/com/github/ambry/router/PutManagerTest.java