@Test
	void testDefaultVirtualHostName() {
		TestPropertyValues.of("spring.application.name:myapp").applyTo(this.context);
		setupContext();
		assertThat(getInstanceConfig().getVirtualHostName()).as("virtualHostName wrong").isEqualTo("myapp");
		assertThat(getInstanceConfig().getSecureVirtualHostName()).as("secureVirtualHostName wrong").isEqualTo("myapp");

	}
@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