public static ContentCluster createCluster(String clusterXml, List<String> schemas, DeployState.Builder deployStateBuilder) throws Exception {
        MockRoot root = createMockRoot(schemas, deployStateBuilder);
        ContentCluster cluster = createCluster(clusterXml, root);
        root.freezeModelTopology();
        cluster.validate();
        return cluster;
    }
For testing purposes only.

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