private List<Configserver> getConfigServers(DeployState deployState, TreeConfigProducer<AnyConfigProducer> parent, Element adminE) {
        Element configserversE = XML.getChild(adminE, "configservers");
        if (configserversE == null) {
            Element adminserver = XML.getChild(adminE, "adminserver");
            if (adminserver == null) {
                return createSingleConfigServer(deployState, parent);
            } else {
                SimpleConfigProducer<AnyConfigProducer> configServers = new SimpleConfigProducer<>(parent, "configservers");
                return List.of(new ConfigserverBuilder(0, configServerSpecs).build(deployState, configServers, adminserver));
            }
        }
        else {
            SimpleConfigProducer<AnyConfigProducer> configServers = new SimpleConfigProducer<>(parent, "configservers");
            List<Configserver> configservers = new ArrayList<>();
            int i = 0;
            for (Element configserverE : XML.getChildren(configserversE, "configserver"))
                configservers.add(new ConfigserverBuilder(i++, configServerSpecs).build(deployState, configServers, configserverE));
            return configservers;
        }
    }
@Test
    void noAdminServerOrConfigServer() {
        Admin admin = buildAdmin(servicesAdminNoAdminServerOrConfigServer());
        assertEquals(1, admin.getConfigservers().size());
    }