public Duration addMeasurements(float cpu, float memory, float disk, int generation, int count,
                                    ApplicationId applicationId,
                                    NodeRepository nodeRepository) {
        NodeList nodes = nodeRepository.nodes().list(Node.State.active).owner(applicationId);
        Instant startTime = nodeRepository.clock().instant();
        for (int i = 0; i < count; i++) {
            for (Node node : nodes)
                nodeRepository.metricsDb().addNodeMetrics(List.of(new Pair<>(node.hostname(),
                                                                             new NodeMetricSnapshot(nodeRepository.clock().instant(),
                                                                                                    new Load(cpu, memory, disk, 0, 0),
                                                                                                    generation,
                                                                                                    true,
                                                                                                    true,
                                                                                                    0.0))));
            ((ManualClock)nodeRepository.clock()).advance(Duration.ofSeconds(150));
        }
        return Duration.between(startTime, nodeRepository.clock().instant());
    }
Tests the scaling suggestions maintainer integration.
The specific suggestions are not tested here.

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