RepoListFragment extends BaseFragment implements RepoListView { @Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); presenter.onSaveInstanceState(outState); }  @OnClick(R.id.button_search) void onClickSearch(View v); @Override void onAttach(Activity activity); @Override void onCreate(@Nullable Bundle savedInstanceState); void setViewComponent(ViewComponent viewComponent); @Nullable @Override View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState); @Override void showError(String error); @Override void showRepoList(List<Repository> repoList); @Override void showEmptyList(); @Override String getUserName(); @Override void startRepoInfoFragment(Repository repository); @Override void onSaveInstanceState(Bundle outState);  }
@Test public void testOnSaveInstanceState() { repoListFragment.onSaveInstanceState(null); verify(repoListPresenter).onSaveInstanceState(null); }
@Test public void testOnSaveInstanceStateWithBundle() { repoListFragment.onSaveInstanceState(bundle); verify(repoListPresenter).onSaveInstanceState(bundle); }