WalledGardenInternetObservingStrategy extends UrlConnectionInternetObservingStrategy { @NonNull public static Builder builder() { return new WalledGardenInternetObservingStrategy.Builder(); } WalledGardenInternetObservingStrategy(@NonNull Builder builder); @NonNull static WalledGardenInternetObservingStrategy create(); @NonNull static Builder builder();  }
@Test public void shouldThrow_whenTryingToObserveInvalidEndpoint() { InternetObservingStrategy sut = builder().endpoint(INVALID_HOST).build(); assertThat(sut.observe().blockingFirst()).isFalse(); }