public void activate(ApplicationId applicationId, ClusterSpec cluster, Capacity capacity) {
        List<HostSpec> hosts = provisioner.prepare(applicationId, cluster, capacity, new InMemoryProvisionLogger());
        try (var lock = provisioner.lock(applicationId)) {
            NestedTransaction transaction = new NestedTransaction().add(new CuratorTransaction(curator));
            provisioner.activate(hosts, new ActivationContext(0, !capacity.canFail()), new ApplicationTransaction(lock, transaction));
            transaction.commit();
        }
    }
Create hostCount hosts, one app with containerCount containers, and one app with contentCount content nodes.
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/maintenance/NodeFailTester.java