RosieFragment extends Fragment implements RosiePresenter.View { @Override public void onDestroy() { super.onDestroy(); presenterLifeCycleLinker.destroyPresenters(); }  @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 shouldCallDestroyPresenterWhenFragmentDestroy() { TestFragment testFragment = startFragment(); testFragment.onDestroy(); verify(testFragment.presenter).destroy(); }