@Test
	void shouldNotResetManagementAndJmxPortsInMetadataMap() {
		TestPropertyValues
			.of("management.server.port=9999", "eureka.instance.metadata-map.jmx.port=9898",
					"eureka.instance.metadata-map.management.port=7878")
			.applyTo(this.context);
		setupContext(RefreshAutoConfiguration.class);

		EurekaInstanceConfigBean instance = this.context.getBean(EurekaInstanceConfigBean.class);
		assertThat(instance.getMetadataMap().get("management.port")).isEqualTo("7878");
		assertThat(instance.getMetadataMap().get("jmx.port")).isEqualTo("9898");
	}
@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