@Test public void shouldNotPropagateLastConnectivityWhenIsConnected() {

  // given
  final Connectivity last = new Connectivity.Builder()
      .type(ConnectivityManager.TYPE_WIFI)
      .state(NetworkInfo.State.CONNECTED)
      .build();
  final Connectivity current = new Connectivity.Builder()
      .type(ConnectivityManager.TYPE_MOBILE)
      .state(NetworkInfo.State.CONNECTED)
      .detailedState(NetworkInfo.DetailedState.CONNECTED)
      .build();
  // when
  final Publisher<Connectivity> publisher = strategy.propagateAnyConnectedState(last, current);
  // then
  final TestSubscriber<Object> testSubscriber = new TestSubscriber<>();
  publisher.subscribe(testSubscriber);
  testSubscriber.assertValueCount(1);
  testSubscriber.assertValues(current);
}