@Test
	void refreshScopeNotIncluded() {
		new ApplicationContextRunner().withUserConfiguration(Beans.class).run(c -> {
			assertThat(c).doesNotHaveBean("foo");
			assertThat(c.getBean("bar")).isEqualTo("bar");
		});

		new ApplicationContextRunner().withUserConfiguration(Beans.class)
			.withPropertyValues("eureka.client.refresh.enable=false")
			.run(c -> {
				assertThat(c).doesNotHaveBean("foo");
				assertThat(c.getBean("bar")).isEqualTo("bar");
			});
	}
@author Dave Syer
@author Biju Kunjummen
spring-cloud-netflix-eureka-client/src/test/java/org/springframework/cloud/netflix/eureka/ConditionalOnRefreshScopeTests.java