@Test
    public void testStatefulProperty() {
        String servicesXml =
                "<?xml version='1.0' encoding='utf-8' ?>" +
                "<services>" +
                "  <container version='1.0' id='qrs'>" +
                "     <nodes count='1'/>" +
                "  </container>" +
                "  <container version='1.0' id='zk'>" +
                "     <zookeeper/>" +
                "     <nodes count='3'/>" +
                "  </container>" +
                "  <content version='1.0' id='content'>" +
                "     <redundancy>2</redundancy>" +
                "     <documents>" +
                "       <document type='type1' mode='index'/>" +
                "     </documents>" +
                "     <nodes count='2'/>" +
                "   </content>" +
                "</services>";
        VespaModelTester tester = new VespaModelTester();
        tester.addHosts(9);
        VespaModel model = tester.createModel(servicesXml, true, deployStateWithClusterEndpoints("qrs", "zk"));

        Map<String, Boolean> tests = Map.of("qrs", false,
                                            "zk", true,
                                            "content", true);
        Map<String, List<HostResource>> hostsByCluster = model.hostSystem().getHosts().stream()
                                                              .collect(Collectors.groupingBy(h -> h.spec().membership().get().cluster().id().value()));
        tests.forEach((clusterId, stateful) -> {
            List<HostResource> hosts = hostsByCluster.getOrDefault(clusterId, List.of());
            assertFalse(hosts.isEmpty(), "Hosts are provisioned for '" + clusterId + "'");
            assertEquals(stateful,
                         hosts.stream().allMatch(h -> h.spec().membership().get().cluster().isStateful()),
                         "Hosts in cluster '" + clusterId + "' are " + (stateful ? "" : "not ") + "stateful");
        });
    }
Recreate the combination used in some factory tests
config-model/src/test/java/com/yahoo/config/model/provision/ModelProvisioningTest.java