private ContentCluster createWithZone(String clusterXml, Zone zone) throws Exception {
        DeployState.Builder deployStateBuilder = new DeployState.Builder()
                .zone(zone);
        var properties = new TestProperties().setHostedVespa(true);
        deployStateBuilder.properties(properties);

        List<String> schemas = SchemaBuilder.createSchemas("test");
        MockRoot root = createMockRoot(schemas, deployStateBuilder);
        ContentCluster cluster = ContentClusterUtils.createCluster(clusterXml, root);
        root.freezeModelTopology();
        cluster.validate();
        return cluster;
    }
Here there is no good choice.
config-model/src/test/java/com/yahoo/vespa/model/content/ContentClusterTest.java