@Test public void shouldStopObservingConnectivity() {

  // given
  final Observable<Connectivity> observable = strategy.observeNetworkConnectivity(context);
  // when
  final Disposable disposable = observable.subscribe();
  disposable.dispose();
  // then
  assertThat(disposable.isDisposed()).isTrue();
}