@Test
    public void containerWithZooKeeperSuboptimalNodeCountDuringRetirement() {
        String servicesXml =
                "<?xml version='1.0' encoding='utf-8' ?>" +
                "<services>" +
                "  <container version='1.0' id='zk'>" +
                "     <zookeeper/>" +
                "     <nodes count='3'/>" +
                "  </container>" +
                "</services>";
        VespaModelTester tester = new VespaModelTester();
        tester.addHosts(4);
        VespaModel model = tester.createModel(Zone.defaultZone(), servicesXml, true, deployStateWithClusterEndpoints("zk"), "node-1-3-50-04");
        ApplicationContainerCluster cluster = model.getContainerClusters().get("zk");
        assertEquals(1, cluster.getContainers().stream().filter(Container::isRetired).count());
        assertEquals(3, cluster.getContainers().stream().filter(c -> !c.isRetired()).count());
    }
Recreate the combination used in some factory tests
config-model/src/test/java/com/yahoo/config/model/provision/ModelProvisioningTest.java