@Test
	void testCustomVirtualHostName() {
		TestPropertyValues
			.of("spring.application.name:myapp", "eureka.instance.virtualHostName=myvirthost",
					"eureka.instance.secureVirtualHostName=mysecurevirthost")
			.applyTo(this.context);
		setupContext();
		assertThat(getInstanceConfig().getVirtualHostName()).as("virtualHostName wrong").isEqualTo("myvirthost");
		assertThat(getInstanceConfig().getSecureVirtualHostName()).as("secureVirtualHostName wrong")
			.isEqualTo("mysecurevirthost");

	}
@author Dave Syer
@author Spencer Gibb
@author Ryan Baxter
@author Tim Ysewyn
spring-cloud-netflix-eureka-client/src/test/java/org/springframework/cloud/netflix/eureka/EurekaInstanceConfigBeanTests.java