@Test
	void refreshIpAddressWhenSetByUser() {
		TestPropertyValues.of("eureka.instance.appGroupName=mygroup").applyTo(this.context);
		setupContext();
		getInstanceConfig().setIpAddress("10.0.0.1");
		assertThat(getInstanceConfig().getIpAddress()).isEqualTo("10.0.0.1");
		getInstanceConfig().getHostName(true);
		assertThat(getInstanceConfig().getIpAddress()).isEqualTo("10.0.0.1");
	}
@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