@SuppressWarnings("unchecked")
		@Bean
		public EurekaHttpClient mockEurekaHttpClient() {
			InstanceInfo instanceInfo = InstanceInfo.Builder.newBuilder().setAppName("configserver").build();
			List<InstanceInfo> instanceInfos = Collections.singletonList(instanceInfo);

			Applications applications = mock(Applications.class);
			when(applications.getInstancesByVirtualHostName("configserver")).thenReturn(instanceInfos);

			EurekaHttpResponse<Applications> response = mock(EurekaHttpResponse.class);
			when(response.getStatusCode()).thenReturn(200);
			when(response.getEntity()).thenReturn(applications);

			EurekaHttpClient client = mock(EurekaHttpClient.class);
			when(client.getApplications("us-east-1", "us-east-2")).thenReturn(response);
			when(client.getApplications((String) null)).thenReturn(response);
			when(client.getVip("vip1", "us-east-1", "us-east-2")).thenReturn(response);
			return client;
		}
@author Spencer Gibb
@author Tang Xiong
spring-cloud-netflix-eureka-client/src/test/java/org/springframework/cloud/netflix/eureka/config/EurekaConfigServerBootstrapConfigurationTests.java