public static List<ContainerBuilder> generateContainerBuilders(int numContainers, short accountId) {
    List<ContainerBuilder> containerBuilders = new ArrayList<>();
    Set<Short> containerIdSet = new HashSet<>();
    for (int j = 0; j < numContainers; j++) {
      short containerId = Utils.getRandomShort(random);
      if (!containerIdSet.add(containerId)) {
        j--;
        continue;
      }
      String containerName = UUID.randomUUID().toString();
      Container.ContainerStatus containerStatus =
          random.nextBoolean() ? Container.ContainerStatus.ACTIVE : Container.ContainerStatus.INACTIVE;
      String containerDescription = UUID.randomUUID().toString();
      boolean containerCaching = random.nextBoolean();
      boolean containerEncryption = random.nextBoolean();
      boolean containerPreviousEncryption = containerEncryption || random.nextBoolean();
      boolean mediaScanDisabled = random.nextBoolean();
      String replicationPolicy = TestUtils.getRandomString(10);
      boolean ttlRequired = random.nextBoolean();
      ContainerBuilder containerBuilder =
          new ContainerBuilder(containerId, containerName, containerStatus, containerDescription,
              accountId).setEncrypted(containerEncryption)
              .setPreviouslyEncrypted(containerPreviousEncryption)
              .setCacheable(containerCaching)
              .setMediaScanDisabled(mediaScanDisabled)
              .setReplicationPolicy(replicationPolicy)
              .setTtlRequired(ttlRequired);
      containerBuilders.add(containerBuilder);
    }
    return containerBuilders;
  }
Generate {@link ContainerBuilder}s for specified {@code accountId}.
@param numContainers number of {@link ContainerBuilder}s to generate.
@param accountId accountId for container.
@return {@link List} of {@link ContainerBuilder}s.
ambry-test-utils/src/main/java/com/github/ambry/utils/AccountTestUtils.java