HomeContainerPresenter implements Presenter { @VisibleForTesting public void handleUserImageClick() { view.getLifecycleEvent() .filter(lifecycleEvent -> lifecycleEvent.equals(View.LifecycleEvent.CREATE)) .flatMap(created -> view.toolbarUserClick() .observeOn(viewScheduler) .doOnNext(account -> homeNavigator.navigateToMyAccount()) .retry()) .compose(view.bindUntilEvent(View.LifecycleEvent.DESTROY)) .subscribe(__ -> { }, throwable -> { throw new OnErrorNotImplementedException(throwable); }); } HomeContainerPresenter(HomeContainerView view, Scheduler viewScheduler,
      AptoideAccountManager accountManager, HomeContainerNavigator homeContainerNavigator,
      HomeNavigator homeNavigator, HomeAnalytics homeAnalytics, Home home,
      ChipManager chipManager); @Override void present(); @VisibleForTesting void loadMainHomeContent(); @VisibleForTesting void loadUserImage(); @VisibleForTesting void handleUserImageClick(); @VisibleForTesting void handlePromotionsClick(); @VisibleForTesting void checkForPromotionApps(); @VisibleForTesting void handleClickOnPromotionsDialogContinue(); @VisibleForTesting void handleClickOnPromotionsDialogCancel(); @VisibleForTesting void handleLoggedInAcceptTermsAndConditions(); @VisibleForTesting void handleTermsAndConditionsContinueClicked(); @VisibleForTesting void handleTermsAndConditionsLogOutClicked(); @VisibleForTesting void handleClickOnTermsAndConditions(); @VisibleForTesting void handleClickOnPrivacyPolicy(); @VisibleForTesting void handleClickOnGamesChip(); @VisibleForTesting void handleClickOnAppsChip();  }
@Test public void handleUserImageClickTest() { presenter.handleUserImageClick(); lifecycleEvent.onNext(View.LifecycleEvent.CREATE); verify(homeNavigator).navigateToMyAccount(); }