public void assertResources(String message,
                                int nodeCount, int groupCount,
                                NodeResources expectedResources,
                                Autoscaling autoscaling) {
        assertTrue("Resources are present: " + message + " (" + autoscaling + ": " + autoscaling.status() + ")",
                   autoscaling.resources().isPresent());
        assertResources(message, nodeCount, groupCount,
                        expectedResources.vcpu(), expectedResources.memoryGiB(), expectedResources.diskGb(),
                        autoscaling.resources().get());
    }
Creates a single redeployment event with bogus data except for the given duration
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/provisioning/DynamicProvisioningTester.java