### Question:
OverlayPresenter extends SimpleActivityLifecycleCallbacks implements ScreenTracker.ScreenListener { @Override public void onActivityStarted(Activity activity) { if (!isExpanded) { view.showButton(activity, false); } } OverlayPresenter(
            OverlayView view,
            List<Page> allPages,
            SelectedPageStorage selectedPageStorage,
            ScreenTracker screenTracker,
            PhialNotifier notifier); @Override void onActivityStarted(Activity activity); @Override void onActivityStopped(Activity activity); @Override void onActivityResumed(Activity activity); @Override void onActivityPaused(Activity activity); @Override void onScreenChanged(Screen screen); @Nullable View findViewById(int id); void destroy();  }### Answer:
@Test public void onActivityStarted_adds_button() { presenter.onActivityStarted(activity); verify(view).showButton(eq(activity), eq(false)); }