@Test public void shouldObserveConnectivity() {

  // given
  final NetworkObservingStrategy strategy = new LollipopNetworkObservingStrategy();
  final Context context = RuntimeEnvironment.application.getApplicationContext();
  // when
  Connectivity connectivity = strategy.observeNetworkConnectivity(context).blockingFirst();
  // then
  assertThat(connectivity.state()).isEqualTo(NetworkInfo.State.CONNECTED);
}