@Test
	void eurekaConfigNotLoadedWhenDiscoveryClientDisabled() {
		TestPropertyValues.of("spring.cloud.discovery.enabled=false").applyTo(this.context);
		setupContext(TestConfiguration.class);
		assertBeanNotPresent(EurekaClientConfigBean.class);
		assertBeanNotPresent(EurekaInstanceConfigBean.class);
		assertBeanNotPresent(DiscoveryClient.class);
		assertBeanNotPresent(EurekaServiceRegistry.class);
		assertBeanNotPresent(EurekaClient.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