@Bean
    @ConditionalOnMissingBean({HttpClient.class, HttpClientFactory.class})
    public HttpClientFactory httpClient(final HttpClientProperties properties,
                                        final ObjectProvider<LoopResources> provider,
                                        final ServerProperties serverProperties) {
        return new HttpClientFactory(properties, provider.getIfAvailable(), serverProperties);
    }
@Test
    public void testHttpClient() {
        applicationContextRunner
                .withPropertyValues("debug=true")
                .run(context -> {
                    HttpClient client = context.getBean("httpClient", HttpClient.class);
                    assertNotNull(client);
                });
    }