public List<Node> makeReadyChildren(int count, int startIndex, NodeResources resources, NodeType nodeType,
                                        String parentHostname, Function<Integer, String> nodeNamer) {
        if (nodeType.isHost()) throw new IllegalArgumentException("Non-child node type: " + nodeType);
        List<Node> nodes = new ArrayList<>(count);
        for (int i = startIndex; i < count + startIndex; i++) {
            String hostname = nodeNamer.apply(i);
            IP.Config ipConfig = IP.Config.of(List.copyOf(nodeRepository.nameResolver().resolveAll(hostname)), List.of());
            Node node = Node.create("node-id", ipConfig, hostname, new Flavor(resources), nodeType)
                            .parentHostname(parentHostname)
                            .build();
            nodes.add(node);
        }
        nodes = nodeRepository.nodes().addNodes(nodes, Agent.system);
        nodes = nodeRepository.nodes().deallocate(nodes, Agent.system, getClass().getSimpleName());
        return move(Node.State.ready, nodes);
    }
Create one or more child nodes on given parent host
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/provisioning/ProvisioningTester.java