@Test
    public void test_container_scaling_down_exclusive() {
        var min = new ClusterResources(2, 1, new NodeResources(4, 8, 50, 0.1));
        var now = new ClusterResources(8, 1, new NodeResources(4, 8, 50, 0.1));
        var max = new ClusterResources(8, 1, new NodeResources(4, 8, 50, 0.1));
        var fixture = DynamicProvisioningTester.fixture()
                                               .awsProdSetup(false)
                                               .clusterType(ClusterSpec.Type.container)
                                               .initialResources(Optional.of(now))
                                               .capacity(Capacity.from(min, max))
                                               .build();
        fixture.tester().setScalingDuration(fixture.applicationId(), fixture.clusterSpec.id(), Duration.ofMinutes(5));

        fixture.loader().applyLoad(new Load(0.01, 0.38, 0, 0, 0), 5);
        fixture.tester().assertResources("Scaling down",
                                         2, 1, 4, 8, 50,
                                         fixture.autoscale());
    }
Using too many resources for a short period is proof we should scale up regardless of the time that takes.
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/AutoscalingTest.java