@Test
	void shouldNotSetManagementAndJmxPortsInMetadataMap() {
		TestPropertyValues.of("server.port=8989", "management.server.port=0").applyTo(this.context);
		setupContext(RefreshAutoConfiguration.class);

		EurekaInstanceConfigBean instance = this.context.getBean(EurekaInstanceConfigBean.class);

		assertThat(instance.getMetadataMap().get("management.port")).isEqualTo(null);
		assertThat(instance.getMetadataMap().get("jmx.port")).isEqualTo(null);
	}
@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