@Test
    public void test_one_node_and_group_to_two_with_resource_change() {
        ProvisioningTester tester = new ProvisioningTester.Builder().zone(new Zone(Environment.perf, RegionName.from("us-east"))).build();

        ApplicationId application1 = ProvisioningTester.applicationId();

        tester.makeReadyNodes(10, small);
        tester.makeReadyNodes(10, large);

        deploy(application1, Capacity.from(new ClusterResources(1, 1, small), true, true), tester);
        deploy(application1, Capacity.from(new ClusterResources(2, 2, large), true, true), tester);
    }
This demonstrates a case where we end up provisioning new nodes rather than reusing retired nodes
due to asymmetric group sizes after step 2 (second group has 3 additional retired nodes).
We probably need to switch to a multipass group allocation procedure to fix this case.
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/provisioning/MultigroupProvisioningTest.java