public void deactivateRetired(ApplicationId application, ClusterSpec cluster, Capacity capacity) {
        try (Mutex lock = nodeRepository().applications().lock(application)) {
            for (Node node : nodeRepository().nodes().list(Node.State.active).owner(application)) {
                if (node.allocation().get().membership().retired())
                    nodeRepository().nodes().write(node.with(node.allocation().get().removable(true, true)), lock);
            }
        }
        deploy(application, cluster, capacity);
    }
A provisioning tester which
- Supports dynamic provisioning (only).
- Optionally replicates the actual AWS setup and logic used on Vespa Cloud.
- Supports autoscaling testing.

TODO: All provisioning testing should migrate to use this, and then the provisioning tester should be collapsed
      into this.   ... or we should just use autoscalingtester for everything.

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