### Question:
ServiceCombServiceRegistry implements ServiceRegistry<ServiceCombRegistration> { @Override public String getStatus(ServiceCombRegistration registration) { try { MicroserviceInstanceSingleResponse instance = serviceCombClient .getInstance(serviceID, instanceID); if (instance != null && instance.getInstance() != null) { return instance.getInstance().getStatus().name(); } } catch (ServiceCombException e) { LOGGER.error("getStatus failed", e); } return null; } ServiceCombServiceRegistry(ServiceCombClient serviceCombClient,
      HeartbeatScheduler heartbeatScheduler,
      ServiceCombDiscoveryProperties serviceCombDiscoveryProperties,
      ServiceCombWatcher serviceCombWatcher,
      TagsProperties tagsProperties); @Override void register(ServiceCombRegistration registration); @Override void deregister(ServiceCombRegistration registration); @Override void close(); @Override void setStatus(ServiceCombRegistration registration, String status); @Override String getStatus(ServiceCombRegistration registration); String getServiceID(); String getInstanceID();  }### Answer:
@Test public void getStatus() throws ServiceCombException { MicroserviceInstanceSingleResponse microserviceInstanceSingleResponse = new MicroserviceInstanceSingleResponse(); MicroserviceInstance instance = new MicroserviceInstance(); instance.setStatus(MicroserviceInstanceStatus.UP); microserviceInstanceSingleResponse.setInstance(instance); new Expectations() { { serviceCombClient.getInstance(anyString, anyString); result = microserviceInstanceSingleResponse; } }; ServiceCombServiceRegistry serviceCombServiceRegistry = new ServiceCombServiceRegistry( serviceCombClient, heartbeatScheduler, serviceCombDiscoveryProperties, serviceCombWatcher, tagsProperties); String actual = serviceCombServiceRegistry.getStatus(registration); Assert.assertEquals(actual, MicroserviceInstanceStatus.UP.name()); }