@Test
    public void unknown_distribution_with_known_ready_nodes() {
        ProvisioningTester tester = new ProvisioningTester.Builder().build();
        tester.makeReadyChildren(3, resources1);

        final int contentNodeCount = 3;
        final int groups = 1;
        final List<HostSpec> contentHosts = tester.prepare(applicationId, contentClusterSpec, contentNodeCount, groups, resources1);
        tester.activate(applicationId, contentHosts);
        assertEquals(3, tester.getNodes(applicationId, Node.State.active).size());

        tester.makeReadyChildren(1, resources1, "parentHost1");
        tester.makeReadyChildren(1, resources1, "parentHost2");
        tester.makeReadyChildren(1, resources1, "parentHost3");
        assertEquals(contentHosts, tester.prepare(applicationId, contentClusterSpec, contentNodeCount, groups, resources1));
    }
Tests provisioning of virtual nodes

@author hmusum
@author mpolden
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/provisioning/VirtualNodeProvisioningTest.java