public List<HostSpec> prepareAndActivateInfraApplication(InfraApplication application, Version version) {
        ClusterSpec cluster = application.getClusterSpecWithVersion(version);
        Capacity capacity = application.getCapacity();
        List<HostSpec> hostSpecs = prepare(application.getApplicationId(), cluster, capacity);
        activate(application.getApplicationId(), hostSpecs);
        return hostSpecs;
    }
Remove all resources allocated to application
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/provisioning/ProvisioningTester.java