private void verifyCosmosData(Set<Container> containers) throws CosmosException {
    Set<CosmosContainerDeletionEntry> entries = cloudDestination.getCosmosDataAccessor().getDeprecatedContainers(100);
    Assert.assertEquals(containers.size(), entries.size());
    Set<Short> containerIds = containers.stream().map(Container::getId).collect(Collectors.toSet());
    for (CosmosContainerDeletionEntry entry : entries) {
      Assert.assertTrue(containerIds.contains(entry.getContainerId()));
    }
  }
Verifies that the data stored in cosmos table is as expected.
@param containers {@link Set} of {@link Container}s that should be present in cosmos.
ambry-cloud/src/test/java/com/github/ambry/cloud/azure/AzureContainerCompactorIntegrationTest.java