private VespaModel createVespaModel(String servicesXml, DeployState.Builder deployStateBuilder) throws IOException, SAXException {
        ApplicationPackage applicationPackage = new MockApplicationPackage.Builder()
                .withServices(servicesXml)
                .withSchemas(sds)
                .build();
        // Need to create VespaModel to make deploy properties have effect
        DeployLogger logger = new DeployLoggerStub();
        VespaModel model = new VespaModel(new NullConfigModelRegistry(), deployStateBuilder
                .applicationPackage(applicationPackage)
                .reindexing(new DummyReindexing())
                .deployLogger(logger)
                .zone(new Zone(SystemName.cd, Environment.dev, RegionName.from("here")))
                .build());
        SimpleApplicationValidator.checkServices(new StringReader(servicesXml), new Version(7));
        return model;
    }
Test for creating cluster controllers under the admin tag.
config-model/src/test/java/com/yahoo/vespa/model/admin/ClusterControllerTestCase.java