private String createClusterAndGetDeploymentWarnings(String xml) {
        var warningBuf = new StringBuffer();
        try {
            createOneNodeCluster(xml, new TestProperties(), Optional.empty(), warningBuf);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        return warningBuf.toString();
    }
Here there is no good choice.
config-model/src/test/java/com/yahoo/vespa/model/content/ContentClusterTest.java