@Test
	void testInstanceNamePreferred() {
		addSystemEnvironment(this.context.getEnvironment(), "SPRING_APPLICATION_NAME=mytestspringappname");
		TestPropertyValues.of("eureka.instance.appname=mytesteurekaappname").applyTo(this.context);
		setupContext();
		assertThat(getInstanceConfig().getAppname()).isEqualTo("mytesteurekaappname");
	}
@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