private List<Node> createHostNodes(int count) {
        List<Node> nodes = tester.makeProvisionedNodes(count, (index) -> "parent" + index,
                                                       hostFlavors.getFlavorOrThrow("default"),
                                                       Optional.empty(), NodeType.host, 10, false);
        nodes = nodeRepository.nodes().deallocate(nodes, Agent.system, getClass().getSimpleName());
        tester.activateTenantHosts();
        return tester.move(Node.State.ready, nodes);
    }
Create hostCount hosts, one app with containerCount containers, and one app with contentCount content nodes.
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/maintenance/NodeFailTester.java