void doListDatasetAndVerify(String accountName, String containerName, List<Dataset> expectedDatasets)
      throws Exception {
    InMemAccountService.PAGE_SIZE = -1;
    HttpHeaders listHeaders = new DefaultHttpHeaders();
    listHeaders.add(TARGET_ACCOUNT_NAME, accountName);
    listHeaders.add(TARGET_CONTAINER_NAME, containerName);
    List<String> datasetNames = listDataset(listHeaders);
    List<String> expectedDatasetNames =
        expectedDatasets.stream().map(Dataset::getDatasetName) // Extract the name from each Dataset
            .collect(Collectors.toList());
    Collections.sort(datasetNames);
    Collections.sort(expectedDatasetNames);
    assertEquals("Dataset name should match", expectedDatasetNames, datasetNames);
  }
Verify Named blob List operation.
@param accountName The account name.
@param containerName The container name
@param ownerId The owner id
@param prefix The prefix of blob name.
@param numberOfBlobs The expected number of named blobs returned by list operation.
@throws Exception
ambry-frontend/src/integration-test/java/com/github/ambry/frontend/FrontendIntegrationTestBase.java