@Test
	void testAppName() {
		TestPropertyValues.of("spring.application.name=mytest").applyTo(this.context);
		setupContext();
		assertThat(getInstanceConfig().getAppname()).isEqualTo("mytest");
		assertThat(getInstanceConfig().getVirtualHostName()).isEqualTo("mytest");
		assertThat(getInstanceConfig().getSecureVirtualHostName()).isEqualTo("mytest");
	}
@author Spencer Gibb
@author Matt Jenkins
@author Olga Maciaszek-Sharma
@author Tim Ysewyn
spring-cloud-netflix-eureka-client/src/test/java/org/springframework/cloud/netflix/eureka/EurekaClientAutoConfigurationTests.java