SplashPresenter implements SplashContract.UserActionsListener { @Override public void loadSplash() { if (settingsRepository.isFirstTime()) { splashView.loadTutorial(); } else { splashView.loadMainScreen(); } } SplashPresenter(SplashContract.View view, SettingsRepository settingsRepository); @Override void loadSplash(); @Override ArrayList<TutorialItem> getTutorialItems(Context context); @Override void finishedTutorial();  }
@Test public void loadSplashFistTime() { when(settingsRepository.isFirstTime()).thenReturn(true); splashPresenter.loadSplash(); verify(splashView).loadTutorial(); }
@Test public void loadSplashNotFirstTime() { when(settingsRepository.isFirstTime()).thenReturn(false); splashPresenter.loadSplash(); verify(splashView).loadMainScreen(); }