void writeConfigToDisk() {
        VespaTlsConfig config = VespaZookeeperTlsContextUtils.tlsContext()
                                                             .map(ctx -> new VespaTlsConfig(ctx, TransportSecurityUtils.getInsecureMixedMode()))
                                                             .orElse(VespaTlsConfig.tlsDisabled());
        writeConfigToDisk(config);
    }
@Test
    public void config_is_written_correctly_with_tls_for_quorum_communication_tls_without_mixed_mode() {
        ZookeeperServerConfig.Builder builder = createConfigBuilderForSingleHost(cfgFile, idFile);
        TlsContext tlsContext = createTlsContext();
        new Configurator(builder.build()).writeConfigToDisk(new VespaTlsConfig(tlsContext, MixedMode.DISABLED));
        validateConfigFileTlsWithoutMixedMode(cfgFile, false);
    }