public static NacosRestTemplate getNacosRestTemplate(Logger logger) {
        return getNacosRestTemplate(new DefaultHttpClientFactory(logger));
    }
@Test
    void testGetNacosRestTemplateForNullFactory() {
        assertThrows(NullPointerException.class, () -> {
            HttpClientBeanHolder.getNacosRestTemplate((HttpClientFactory) null);
        });
    }