@Override
    public void configureSsl(ConnectorSsl ssl, String name, int port) {
        TlsContext tlsContext = getTlsContext(name, port);
        SSLParameters parameters = tlsContext.parameters();
        ssl.setSslContext(tlsContext.sslContext().context());
        ssl.setEnabledProtocolVersions(List.of(parameters.getProtocols()));
        ssl.setEnabledCipherSuites(List.of(parameters.getCipherSuites()));
        if (parameters.getNeedClientAuth()) {
            ssl.setClientAuth(ConnectorSsl.ClientAuth.NEED);
        } else if (parameters.getWantClientAuth()) {
            ssl.setClientAuth(ConnectorSsl.ClientAuth.WANT);
        } else {
            ssl.setClientAuth(ConnectorSsl.ClientAuth.DISABLED);
        }
    }
@Test
    void creates_sslcontextfactory_from_tlscontext() {
        TlsContext tlsContext = createTlsContext();
        var provider = new SimpleTlsContextBasedProvider(tlsContext);
        DefaultConnectorSsl ssl = new DefaultConnectorSsl();
        provider.configureSsl(ssl, "dummyContainerId", 8080);
        assertArrayEquals(tlsContext.parameters().getCipherSuites(), ssl.createSslContextFactory().getIncludeCipherSuites());
    }