private Account createRandomAccount() {
    final Random random = new Random();
    Short accountID = Utils.getRandomShort(random);
    String accountName = UUID.randomUUID().toString();
    Short containerID = Utils.getRandomShort(random);
    String containerName = UUID.randomUUID().toString();
    String containerDescription = UUID.randomUUID().toString();
    boolean containerCaching = random.nextBoolean();
    boolean containerEncryption = random.nextBoolean();
    boolean containerPreviousEncryption = containerEncryption || random.nextBoolean();
    boolean containerMediaScanDisabled = random.nextBoolean();
    String replicationPolicy = TestUtils.getRandomString(10);
    boolean containerTtlRequired = random.nextBoolean();
    Container container =
        new ContainerBuilder(containerID, containerName, Container.ContainerStatus.ACTIVE, containerDescription,
            accountID).setEncrypted(containerEncryption)
            .setPreviouslyEncrypted(containerPreviousEncryption)
            .setCacheable(containerCaching)
            .setMediaScanDisabled(containerMediaScanDisabled)
            .setReplicationPolicy(replicationPolicy)
            .setTtlRequired(containerTtlRequired)
            .build();
    return new AccountBuilder(accountID, accountName, Account.AccountStatus.ACTIVE).addOrUpdateContainer(container)
        .build();
  }
Create an random {@link Account} with one random {@link Container}.
@return The {@link Account} just created.
ambry-account/src/test/java/com/github/ambry/account/BackupFileManagerTest.java