@Test
    public void test_autoscaling_multiple_content_groups() {
        var min = new ClusterResources(3, 3,
                                       new NodeResources(1, 4, 10, 1, NodeResources.DiskSpeed.any));
        var max = new ClusterResources(21, 3,
                                       new NodeResources(100, 1000, 1000, 1, NodeResources.DiskSpeed.any));
        var fixture = DynamicProvisioningTester.fixture()
                                               .awsProdSetup(true)
                                               .initialResources(Optional.of(new ClusterResources(9, 3, new NodeResources(2, 16, 75, 1))))
                                               .capacity(Capacity.from(min, max))
                                               .build();

        fixture.tester().clock().advance(Duration.ofDays(2));
        fixture.store(new BcpGroupInfo(100, 1.1, 0.3));
        fixture.loader().addCpuMeasurements(0.7f, 10);
        fixture.tester().assertResources("Scaling up cpu using bcp group cpu info",
                                         3, 3, 12.3, 41.8, 189.3,
                                         fixture.autoscale());

        // Higher query rate
        fixture.tester().clock().advance(Duration.ofDays(2));
        fixture.store(new BcpGroupInfo(200, 1.1, 0.3));
        fixture.loader().addCpuMeasurements(0.7f, 10);
        fixture.tester().assertResources("Scaling up cpu using bcp group cpu info",
                                         3, 3, 24.4, 41.8, 189.3,
                                         fixture.autoscale());

        // Higher headroom
        fixture.tester().clock().advance(Duration.ofDays(2));
        fixture.store(new BcpGroupInfo(100, 1.3, 0.3));
        fixture.loader().addCpuMeasurements(0.7f, 10);
        fixture.tester().assertResources("Scaling up cpu using bcp group cpu info",
                                         3, 3, 14.5, 41.8, 189.3,
                                         fixture.autoscale());

        // Higher per query cost
        fixture.tester().clock().advance(Duration.ofDays(2));
        fixture.store(new BcpGroupInfo(100, 1.1, 0.45));
        fixture.loader().addCpuMeasurements(0.7f, 10);
        fixture.tester().assertResources("Scaling up cpu using bcp group cpu info",
                                         3, 3, 18.4, 41.8, 189.3,
                                         fixture.autoscale());
    }
Tests with varying BCP group info parameters.
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/AutoscalingUsingBcpGroupInfoTest.java