public Collection<HostSpec> activate(ApplicationId application, Collection<HostSpec> hosts) {
        try (var lock = provisioner.lock(application)) {
            NestedTransaction transaction = new NestedTransaction();
            transaction.add(new CuratorTransaction(curator));
            provisioner.activate(hosts, new ActivationContext(0, false), new ApplicationTransaction(lock, transaction));
            transaction.commit();
        }
        assertEquals(toHostNames(hosts), nodeRepository.nodes().list(Node.State.active).owner(application).hostnames());
        return hosts;
    }
A test utility for provisioning tests.

@author bratseth
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/provisioning/ProvisioningTester.java