### Question:
ServiceHealthManagerDefault implements ServiceHealthManager { @Override public boolean isFailing() { serviceQueue.ifEmpty(this::loadIfEmpty); if (serviceQueue.isPresent()) { return serviceQueue.get().failing(); } else { logger.warn("Service Queue was not found, but isFailing() was called on ServiceHealthManager"); return false; } } ServiceHealthManagerDefault(final Runnable failCallback,
                                       final Runnable recoverCallback); @Override boolean isFailing(); @Override boolean isOk(); @Override void setFailing(); @Override void recover();  }### Answer:
@Test public void testIsFailing() throws Exception { BaseServiceQueueImpl.serviceThreadLocal.set(ServiceBuilder.serviceBuilder().setServiceObject(new Object()).build()); ServiceHealthManagerDefault serviceHealthManagerDefault = new ServiceHealthManagerDefault(null, null); serviceHealthManagerDefault.setFailing(); assertTrue(serviceHealthManagerDefault.isFailing()); serviceHealthManagerDefault.recover(); assertFalse(serviceHealthManagerDefault.isFailing()); serviceHealthManagerDefault = new ServiceHealthManagerDefault(null, null); BaseServiceQueueImpl.serviceThreadLocal.set(null); serviceHealthManagerDefault.setFailing(); assertFalse(serviceHealthManagerDefault.isFailing()); }