EurekaEndpointGroup extends DynamicEndpointGroup { public static EurekaEndpointGroupBuilder builder(String eurekaUri) { return builder(URI.create(requireNonNull(eurekaUri, "eurekaUri"))); } EurekaEndpointGroup(EndpointSelectionStrategy selectionStrategy,
                        WebClient webClient, long registryFetchIntervalSeconds, @Nullable String appName,
                        @Nullable String instanceId, @Nullable String vipAddress,
                        @Nullable String secureVipAddress, @Nullable List<String> regions); static EurekaEndpointGroup of(String eurekaUri); static EurekaEndpointGroup of(URI eurekaUri); static EurekaEndpointGroup of(
            SessionProtocol sessionProtocol, EndpointGroup endpointGroup); static EurekaEndpointGroup of(
            SessionProtocol sessionProtocol, EndpointGroup endpointGroup, String path); static EurekaEndpointGroupBuilder builder(String eurekaUri); static EurekaEndpointGroupBuilder builder(URI eurekaUri); static EurekaEndpointGroupBuilder builder(
            SessionProtocol sessionProtocol, EndpointGroup endpointGroup); static EurekaEndpointGroupBuilder builder(
            SessionProtocol sessionProtocol, EndpointGroup endpointGroup, String path);  }
@Test void upStatusInstancesAreChosen() { final EurekaEndpointGroup eurekaEndpointGroup = EurekaEndpointGroup.builder(eurekaServer.httpUri()) .build(); final CompletableFuture<List<Endpoint>> endpointsCaptor = new CompletableFuture<>(); eurekaEndpointGroup.addListener(endpointsCaptor::complete); assertThat(endpointsCaptor.join()).hasSize(5); }