@Test
	// This test is used to verify that getApplications is called the correct number of
	// times when a refresh event is fired. The getApplications call in
	// EurekaClientConfigurationRefresher.onApplicationEvent
	// ensures that the EurekaClient bean is recreated after a refresh event and that we
	// reregister the client with the server
	void verifyGetApplications() {
		if (publisher != null && isFirstRun) {
			publisher.publishEvent(new RefreshScopeRefreshedEvent());
			isFirstRun = false;
		}
		verify(client, times(3)).getApplications();
	}
@author Ryan Baxter
@author Kaiyao Ke
spring-cloud-netflix-eureka-client/src/test/java/org/springframework/cloud/netflix/eureka/config/ConfigRefreshTests.java