ResponsiveHealthIndicatorAutoConfiguration { @Bean @ConditionalOnMissingBean(name = "gatewayResponsiveHealthIndicator") public ResponsiveHealthIndicator gatewayResponsiveHealthIndicator( GatewayCfg gatewayCfg, ResponsiveHealthIndicatorProperties properties) { return new ResponsiveHealthIndicator(gatewayCfg, properties.getRequestTimeout()); }  @Bean @ConditionalOnMissingBean(name = "gatewayResponsiveHealthIndicator") ResponsiveHealthIndicator gatewayResponsiveHealthIndicator(
      GatewayCfg gatewayCfg, ResponsiveHealthIndicatorProperties properties);  }
@Test public void shouldConfigureHealthIndicator() { final var gatewayCfg = new GatewayCfg(); final var timeout = Duration.ofSeconds(3); final var properties = new ResponsiveHealthIndicatorProperties(); properties.setRequestTimeout(timeout); final var sutAutoConfig = new ResponsiveHealthIndicatorAutoConfiguration(); final var actualHealthIndicator = sutAutoConfig.gatewayResponsiveHealthIndicator(gatewayCfg, properties); assertThat(actualHealthIndicator).isNotNull(); assertThat(actualHealthIndicator.getGatewayCfg()).isSameAs(gatewayCfg); assertThat(actualHealthIndicator.getDefaultTimeout()).isSameAs(timeout); }