RxNetwork { @NonNull public static Builder builder() { return new Builder(); } @VisibleForTesting  RxNetwork(); @VisibleForTesting  RxNetwork(@NonNull Builder builder); @NonNull static RxNetwork init(@NonNull Context context); @NonNull static RxNetwork init(); @NonNull static Builder builder(); @NonNull @RequiresPermission(ACCESS_NETWORK_STATE) Observable<RxNetworkInfo> observe(); @NonNull @RequiresPermission(ACCESS_NETWORK_STATE) Observable<RxNetworkInfo> observe(@NonNull NetworkObservingStrategy strategy); @NonNull @RequiresPermission(ACCESS_NETWORK_STATE) Observable<Boolean> observeSimple(); @NonNull @RequiresPermission(INTERNET) Observable<Boolean> observeInternetAccess(); @NonNull @RequiresPermission(INTERNET) Observable<Boolean> observeInternetAccess(@NonNull InternetObservingStrategy strategy);  }
@Test(expected = NullPointerException.class) public void shouldThrow_whenTryingToSetNullSchedulerOnBuilder() { RxNetwork.builder().defaultScheduler(null); }