PartialHealthCheckStrategy implements HealthCheckStrategy { @Override public List<Endpoint> getSelectedEndpoints() { synchronized (selectedEndpoints) { return ImmutableList.copyOf(selectedEndpoints); } } PartialHealthCheckStrategy(EndpointLimitingFunction endpointLimitingFunction); @Override void updateCandidates(List<Endpoint> candidates); @Override List<Endpoint> getSelectedEndpoints(); @Override boolean updateHealth(Endpoint endpoint, double health);  }
@Test void getCandidatesWhenBeforeFirstUpdateCandidates() { maxRatioStrategy = new PartialHealthCheckStrategyBuilder().maxEndpointRatio(MAX_RATIO) .build(); assertThat(maxRatioStrategy.getSelectedEndpoints()).isEmpty(); }