@Test
	void shouldNotHaveDiscoveryClientWhenBlockingDiscoveryDisabled() {
		new ApplicationContextRunner()
			.withConfiguration(
					AutoConfigurations.of(UtilAutoConfiguration.class, DiscoveryClientOptionalArgsConfiguration.class,
							EurekaClientAutoConfiguration.class, EurekaDiscoveryClientConfiguration.class))
			.withPropertyValues("spring.cloud.discovery.blocking.enabled=false")
			.run(context -> {
				assertThat(context).doesNotHaveBean(DiscoveryClient.class);
				assertThat(context).doesNotHaveBean(DiscoveryClientHealthIndicator.class);
			});
	}
@author Spencer Gibb
@author Matt Jenkins
@author Olga Maciaszek-Sharma
@author Tim Ysewyn
spring-cloud-netflix-eureka-client/src/test/java/org/springframework/cloud/netflix/eureka/EurekaClientAutoConfigurationTests.java