public static ContentCluster createCluster(String clusterXml, MockRoot root) {
        ConfigModelContext.ApplicationType applicationType = ConfigModelContext.ApplicationType.DEFAULT;
        Admin admin = new Admin(root,
                                new DefaultMonitoring(),
                                new Metrics(),
                                root.getDeployState().getProperties().multitenant(),
                                root.getDeployState().isHosted(),
                                applicationType,
                                root.getDeployState().featureFlags());
        Document doc = XML.getDocument(clusterXml);
        ConfigModelContext context = ConfigModelContext.create(applicationType, root.getDeployState(),
                                                               null, null, root, null);

        return new ContentCluster.Builder(admin).build(List.of(), context, doc.getDocumentElement());
    }
For testing purposes only.

@author geirst
config-model/src/test/java/com/yahoo/vespa/model/content/utils/ContentClusterUtils.java