@Override
    public void shutdown() throws NacosException {
        NAMING_LOGGER.warn("[NamingHttpClientManager] Start destroying NacosRestTemplate");
        try {
            HttpClientBeanHolder.shutdownNacosSyncRest(HTTP_CLIENT_FACTORY.getClass().getName());
        } catch (Exception ex) {
            NAMING_LOGGER.error("[NamingHttpClientManager] An exception occurred when the HTTP client was closed : {}",
                    ExceptionUtil.getStackTrace(ex));
        }
        NAMING_LOGGER.warn("[NamingHttpClientManager] Destruction of the end");
    }
@Test
    void testShutdown() throws NoSuchFieldException, IllegalAccessException, NacosException, IOException {
        //given
        NamingHttpClientManager instance = NamingHttpClientManager.getInstance();
        
        HttpClientRequest mockHttpClientRequest = Mockito.mock(HttpClientRequest.class);
        Field requestClient = NacosRestTemplate.class.getDeclaredField("requestClient");
        requestClient.setAccessible(true);
        requestClient.set(instance.getNacosRestTemplate(), mockHttpClientRequest);
        // when
        NamingHttpClientManager.getInstance().shutdown();
        // then
        verify(mockHttpClientRequest, times(1)).close();
    }