private Container buildContainerWithOtherFields(ContainerBuilder builder, Container container) {
    return builder.setEncrypted(container.isEncrypted())
        .setPreviouslyEncrypted(container.wasPreviouslyEncrypted())
        .setCacheable(container.isCacheable())
        .setBackupEnabled(container.isBackupEnabled())
        .setMediaScanDisabled(container.isMediaScanDisabled())
        .setParanoidDurabilityEnabled(container.isParanoidDurabilityEnabled())
        .setReplicationPolicy(container.getReplicationPolicy())
        .setTtlRequired(container.isTtlRequired())
        .setWorkflowMigrationEnabled(container.isWorkflowMigrationEnabled())
        .setContentTypeWhitelistForFilenamesOnDownload(container.getContentTypeWhitelistForFilenamesOnDownload())
        .setDeleteTriggerTime(container.getDeleteTriggerTime())
        .setOverrideAccountAcl(container.isAccountAclOverridden())
        .setSecurePathRequired(container.isSecurePathRequired())
        .setAccessControlAllowOrigin(container.getAccessControlAllowOrigin())
        .setNamedBlobMode(container.getNamedBlobMode())
        .setLastModifiedTime(container.getLastModifiedTime())
        .setSnapshotVersion(container.getSnapshotVersion())
        .setCacheTtlInSecond(container.getCacheTtlInSecond())
        .setUserMetadataKeysToNotPrefixInResponse(container.getUserMetadataKeysToNotPrefixInResponse())
        .build();
  }
Build a container in the {@link ContainerBuilder} with the values from {@code container}. It expects the
{@code builder} to already have name, id, description and status.
@param builder The {@link ContainerBuilder}.
@param container The {@link Container}.
@return
ambry-api/src/test/java/com/github/ambry/account/AccountContainerTest.java