public Cluster cluster(ApplicationId application, ClusterSpec cluster) {
        return nodeRepository().applications().get(application).get().cluster(cluster.id()).get();
    }
Creates the given number of measurements, spaced 5 minutes between, using the given function
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/maintenance/AutoscalingMaintainerTester.java