@Test
	void shouldRegisterService() {
		System.setProperty("status", "UP");

		InstanceInfo.InstanceStatus status = this.discoveryClient.getHealthCheckHandler()
			.getStatus(InstanceInfo.InstanceStatus.UNKNOWN);

		assertThat(status).isNotNull();
		assertThat(status).isEqualTo(InstanceInfo.InstanceStatus.UP);
	}
Tests the Eureka health check handler.

@author Jakub Narloch
@author Olga Maciaszek-Sharma
spring-cloud-netflix-eureka-client/src/test/java/org/springframework/cloud/netflix/eureka/healthcheck/EurekaHealthCheckTests.java