BuiltInNetworkObservingStrategyFactory implements NetworkObservingStrategyFactory { @NonNull @Override public NetworkObservingStrategy get() { for (NetworkObservingStrategyProvider strategyProvider : strategyProviders.get()) { if (strategyProvider.canProvide()) { return strategyProvider.provide(); } } throw new NullPointerException( "No NetworkObservingStrategy found for API level " + SDK_INT + " ( " + CODENAME + " )"); } BuiltInNetworkObservingStrategyFactory(
      @NonNull ObservingStrategyProviders<NetworkObservingStrategyProvider> strategyProviders); static NetworkObservingStrategyFactory create(
      @NonNull ObservingStrategyProviders<NetworkObservingStrategyProvider> strategyProviders); @NonNull @Override NetworkObservingStrategy get();  }
@Test public void shouldNeverGetNullStrategy() { assertThat(sut.get()).isNotNull(); }