@Override
    public NacosRestTemplate createNacosRestTemplate() {
        HttpClientConfig httpClientConfig = buildHttpClientConfig();
        final JdkHttpClientRequest clientRequest = new JdkHttpClientRequest(httpClientConfig);
        
        // enable ssl
        initTls((sslContext, hostnameVerifier) -> {
            clientRequest.setSSLContext(loadSSLContext());
            clientRequest.replaceSSLHostnameVerifier(hostnameVerifier);
        }, filePath -> clientRequest.setSSLContext(loadSSLContext()));
        
        return new NacosRestTemplate(assignLogger(), clientRequest);
    }
@Test
    void testCreateNacosRestTemplateWithSsl() throws Exception {
        TlsSystemConfig.tlsEnable = true;
        HttpClientFactory httpClientFactory = new DefaultHttpClientFactory(logger);
        NacosRestTemplate nacosRestTemplate = httpClientFactory.createNacosRestTemplate();
        assertNotNull(nacosRestTemplate);
    }