private long resolveMaxTLSSize(Optional<Flavor> flavor) throws Exception {
        TestProperties testProperties = new TestProperties();

        ContentCluster cc = createOneNodeCluster(testProperties, flavor);
        ProtonConfig.Builder protonBuilder = new ProtonConfig.Builder();
        cc.getSearch().getSearchNodes().get(0).getConfig(protonBuilder);
        ProtonConfig protonConfig = new ProtonConfig(protonBuilder);
        return protonConfig.flush().memory().maxtlssize();
    }
Here there is no good choice.
config-model/src/test/java/com/yahoo/vespa/model/content/ContentClusterTest.java