### Question:
OverlayPresenter extends SimpleActivityLifecycleCallbacks implements ScreenTracker.ScreenListener { @Override public void onActivityPaused(Activity activity) { if (ObjectUtil.equals(activity, curActivity)) { if (isExpanded) { view.removeExpandedView(curActivity); } curActivity = null; } } 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 onActivityPaused_does_noting_if_not_expanded() { verifyNoMoreInteractions(view); presenter.onActivityPaused(activity); }