public static NodeFailTester withInfraApplication(NodeType nodeType, int count) {
        NodeFailTester tester = new NodeFailTester();
        tester.createReadyNodes(count, nodeType);

        // Create application
        InfraApplication application = ProvisioningTester.infraApplication(nodeType);
        Version version = Version.fromString("6.42");
        tester.tester.prepareAndActivateInfraApplication(application, version);
        assertEquals(count, tester.nodeRepository.nodes().list(Node.State.active).nodeType(nodeType).size());

        List<MockDeployer.ApplicationContext> apps = List.of(new MockDeployer.ApplicationContext(application, version));
        tester.initializeMaintainers(apps);
        return tester;
    }
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