RosieFragment extends Fragment implements RosiePresenter.View { @Override public void onPause() { super.onPause(); presenterLifeCycleLinker.pausePresenters(); }  @Override void onActivityCreated(Bundle savedInstanceState); @Override void onAttach(Context context); @Nullable @Override View onCreateView(LayoutInflater inflater, ViewGroup container,
      Bundle savedInstanceState); @Override void onViewCreated(View view, Bundle savedInstanceState); @Override void onResume(); @Override void onPause(); @Override void onDestroy();  }
@Test public void shouldCallPausePresenterWhenFragmentPause() { TestFragment testFragment = startFragment(); testFragment.onPause(); verify(testFragment.presenter).pause(); }