AllHealthCheckStrategy implements HealthCheckStrategy { @Override public List<Endpoint> getSelectedEndpoints() { return ImmutableList.copyOf(candidates); } AllHealthCheckStrategy(); @Override void updateCandidates(List<Endpoint> candidates); @Override List<Endpoint> getSelectedEndpoints(); @Override boolean updateHealth(Endpoint endpoint, double health);  }
@Test void getCandidatesWhenBeforeFirstUpdateCandidates() { assertThat(strategy.getSelectedEndpoints()).isEmpty(); }