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

        ApplicationId application1 = ProvisioningTester.applicationId("app1");

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

        deploy(application1, 8, 1, small, tester);
        deploy(application1, 8, 1, large, tester);
        deploy(application1, 8, 8, large, 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