@Test public void observeInternetConnectivityShouldNotThrowAnExceptionWhenStrategyIsNotNull() {

  // given
  final InternetObservingStrategy strategy = new SocketInternetObservingStrategy();
  final ErrorHandler errorHandler = new DefaultErrorHandler();
  // when
  final Observable<Boolean> observable =
      ReactiveNetwork.observeInternetConnectivity(strategy, TEST_VALID_INITIAL_INTERVAL,
          TEST_VALID_INTERVAL, TEST_VALID_HOST, TEST_VALID_PORT, TEST_VALID_TIMEOUT,
          TEST_VALID_HTTP_RESPONSE, errorHandler);
  // then
  assertThat(observable).isNotNull();
}