@Test
public void shouldCheckInternetConnectivityWithCustomSettings() {

  // given
  final int initialInterval = 1;
  final int interval = 2;
  final String host = "www.test.com";
  int port = 90;
  int timeout = 3;
  int httpResponse = 200;
  ErrorHandler testErrorHandler = createTestErrorHandler();
  InternetObservingStrategy strategy = createTestInternetObservingStrategy();
  // when
  InternetObservingSettings settings = InternetObservingSettings.builder()
      .initialInterval(initialInterval)
      .interval(interval)
      .host(host)
      .port(port)
      .timeout(timeout)
      .httpResponse(httpResponse)
      .errorHandler(testErrorHandler)
      .strategy(strategy)
      .build();
  // then
  Single<Boolean> single = ReactiveNetwork.checkInternetConnectivity(settings);
  assertThat(single).isNotNull();
}