### Question:
NodeHealthIndicator implements HealthIndicator, NodeStatus { @Override public void up() { try { updateDetail(Status.UP); } catch (Exception e) { log.debug("Status up() is failed. {}", e.getMessage()); } finally { log.debug("nodeStatus -> {}", health.get().getStatus()); } } @Autowired  NodeHealthIndicator(DefaultConfig defaultConfig, BranchGroup branchGroup,
                               PeerDialer peerDialer); @Override Health health(); @Override void up(); @Override void sync(); @Override void update(); @Override boolean isUpdateStatus(); @Override boolean isUpStatus(); @Override boolean isSyncStatus();  }### Answer:
@Test public void up() { assertEquals(Status.DOWN, nodeHealthIndicator.health().getStatus()); nodeHealthIndicator.up(); assertEquals(Status.UP, nodeHealthIndicator.health().getStatus()); }