SettableHealthChecker extends AbstractListenable<HealthChecker> implements ListenableHealthChecker { @Override public boolean isHealthy() { return isHealthy.get(); } SettableHealthChecker();  SettableHealthChecker(boolean isHealthy); @Override boolean isHealthy(); SettableHealthChecker setHealthy(boolean isHealthy); @Override String toString();  }
@Test public void justCreated() { final SettableHealthChecker checker = new SettableHealthChecker(); assertTrue(checker.isHealthy()); }
@Test public void justCreatedExplicit() { final SettableHealthChecker checker = new SettableHealthChecker(false); assertFalse(checker.isHealthy()); }