@Test
  public void stitchDatasetVersionTest() throws Exception {
    String uploadSession = UUID.randomUUID().toString();
    long creationTimeMs = System.currentTimeMillis();
    String[] prefixToTest = new String[]{"/" + CLUSTER_NAME, ""};
    for (String prefix : prefixToTest) {

      // multiple chunks
      List<ChunkInfo> chunksToStitch = uploadChunksViaRouter(creationTimeMs, REF_CONTAINER, 45, 10, 200, 19, 0, 50);
      List<String> signedChunkIds = chunksToStitch.stream()
          .map(chunkInfo -> prefix + getSignedId(chunkInfo, uploadSession))
          .collect(Collectors.toList());
      stitchDatasetVersionAndVerify(getStitchRequestBody(signedChunkIds), chunksToStitch);
    }
  }
Test flows related to the stitch dataset version operation.
@throws Exception
ambry-frontend/src/test/java/com/github/ambry/frontend/NamedBlobPutHandlerTest.java