OnboardingPagePresenter extends OnboardingPageContract.Presenter { @Override public void start() { showImage(); showText(); if (mPage.isTransparent()) { getView().showTransparentBackground(); } } OnboardingPagePresenter(
            @NonNull final Activity activity,
            @NonNull final OnboardingPageContract.View view); @Override void start(); @Override void stop();  }
@Test public void should_showTransparentBackground_whenRequested() throws Exception { final OnboardingPage page = new OnboardingPage(R.string.gv_onboarding_align, R.drawable.gv_onboarding_align,true); final OnboardingPagePresenter presenter = createPresenter(page); presenter.start(); verify(mView).showTransparentBackground(); }
@Test public void should_notShowTransparentBackground_whenNotRequested() throws Exception { final OnboardingPage page = new OnboardingPage(R.string.gv_onboarding_align, R.drawable.gv_onboarding_align,false); final OnboardingPagePresenter presenter = createPresenter(page); presenter.start(); verify(mView, never()).showTransparentBackground(); }