SplashPresenter extends MvpPresenter<SplashView> { @Override public void attachView(SplashView view) { super.attachView(view); view.setAuthorized(!TextUtils.isEmpty(AuthUtils.getToken())); }  @Override void attachView(SplashView view);  }
@Test public void splash_shouldAuthorizedStateFalse() { AuthUtils.setToken(null); presenter.attachView(splashView); verify(splashView).setAuthorized(false); }
@Test public void splash_shouldAuthorizedStateTrue() { AuthUtils.setToken("token"); presenter.attachView(splashView); verify(splashView).setAuthorized(true); }