@Test
  public void getChunkBlobIdsTest() throws Exception {
    BlobProperties blobProperties =
        new BlobProperties(0, refAccount.getName(), "owner", "image/gif", false, Utils.Infinite_Time,
            Account.UNKNOWN_ACCOUNT_ID, Container.UNKNOWN_CONTAINER_ID, false, null, null, null);
    ReadableStreamChannel content = new ByteBufferReadableStreamChannel(ByteBuffer.allocate(0));
    String blobId = router.putBlobWithIdVersion(blobProperties, new byte[0], content, BlobId.BLOB_ID_V6).get();
    StoreKey storeKey1 = mock((StoreKey.class));
    when(storeKey1.getID()).thenReturn(TestUtils.getRandomString(10));
    StoreKey storeKey2 = mock((StoreKey.class));
    when(storeKey2.getID()).thenReturn(TestUtils.getRandomString(10));
    List<StoreKey> mockChunkIds = Arrays.asList(storeKey1, storeKey2);
    router.addMockedBlobChunkIds(mockChunkIds);
    RestRequest restRequest =
        createRestRequest(RestMethod.GET, blobId + "/" + RestUtils.SubResource.BlobChunkIds, null, null);
    MockRestResponseChannel restResponseChannel = new MockRestResponseChannel();
    doOperation(restRequest, restResponseChannel);
    JSONObject response = new JSONObject(new String(restResponseChannel.getResponseBody()));
    String chunkId = response.get(GetBlobHandler.BLOB_CHUNK_IDS_KEY).toString();
    assertEquals("Blob chunk Id count mismatch", mockChunkIds.size(), chunkId.split(",").length);
  }
Test get chunk blob Ids for composite blob.
@throws Exception
ambry-frontend/src/test/java/com/github/ambry/frontend/FrontendRestRequestServiceTest.java