private Set<Container> generateContainers(int numContainers) {
    Set<Container> containers = new HashSet<>();
    long currentTimestamp = System.currentTimeMillis();
    AtomicInteger ctr = new AtomicInteger(0);
    List<ContainerBuilder> containerBuilders =
        AccountTestUtils.generateContainerBuilders(numContainers, Utils.getRandomShort(random));
    containers.addAll(containerBuilders.stream().map(containerBuilder -> {
      containerBuilder.setDeleteTriggerTime(currentTimestamp - numContainers + ctr.getAndIncrement())
          .setStatus(
              random.nextBoolean() ? Container.ContainerStatus.DELETE_IN_PROGRESS : Container.ContainerStatus.INACTIVE);
      return containerBuilder.build();
    }).collect(Collectors.toSet()));
    return containers;
  }
Generate specified number of {@link Container}s.
@param numContainers number of {@link Container}s to generate.
@return {@link Set} of {@link Container}s.
ambry-cloud/src/test/java/com/github/ambry/cloud/azure/AzureContainerCompactorIntegrationTest.java