public static NacosRestTemplate getNacosRestTemplate(Logger logger) {
        return getNacosRestTemplate(new DefaultHttpClientFactory(logger));
    }
@Test
    void testGetNacosRestTemplateWithCustomFactory() {
        assertTrue(restMap.isEmpty());
        HttpClientBeanHolder.getNacosRestTemplate((Logger) null);
        assertEquals(1, restMap.size());
        NacosRestTemplate actual = HttpClientBeanHolder.getNacosRestTemplate(mockFactory);
        assertEquals(2, restMap.size());
        assertEquals(mockRestTemplate, actual);
    }