MoreBundlePresenter implements Presenter { @VisibleForTesting public void onCreateSetupToolbar() { view.getLifecycleEvent() .filter(lifecycleEvent -> lifecycleEvent.equals(View.LifecycleEvent.CREATE)) .observeOn(viewScheduler) .doOnNext(created -> view.setToolbarInfo(bundleEvent.getTitle())) .subscribe(__ -> { }, crashReporter::log); } MoreBundlePresenter(MoreBundleView view, MoreBundleManager moreBundleManager,
      Scheduler viewScheduler, CrashReport crashReporter, HomeNavigator homeNavigator,
      AdMapper adMapper, BundleEvent bundleEvent, HomeAnalytics homeAnalytics,
      ChipManager chipManager); @Override void present(); @VisibleForTesting void onCreateSetupToolbar(); @VisibleForTesting void onCreateLoadBundles(); @VisibleForTesting void handleAppClick(); @VisibleForTesting void handleAdClick(); @VisibleForTesting void handleMoreClick(); @VisibleForTesting void handleBundleScrolledRight(); @VisibleForTesting void handleBottomReached(); @VisibleForTesting void handlePullToRefresh(); @VisibleForTesting void handleRetryClick();  }
@Test public void onCreateSetupToolbarTest() { presenter.onCreateSetupToolbar(); lifecycleEvent.onNext(View.LifecycleEvent.CREATE); verify(view).setToolbarInfo(bundleEvent.getTitle()); }