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