DrawerPresenter extends BaseActivityPresenter<DrawerActivityView> { @Override public void onPostCreate(Bundle savedInstanceState) { super.onPostCreate(savedInstanceState); if (savedInstanceState == null) { onNavigationItemSelected(R.id.drawer_nav_schedule); } } DrawerPresenter(DrawerActivityView view); @Override void onPostCreate(Bundle savedInstanceState); @Override void onRestoreInstanceState(Bundle savedInstanceState); @Override void onNavigationItemSelected(@IdRes int itemId); @Override boolean onBackPressed();  }
@Test public void should_automatically_select_my_schedule_when_starting_the_app() { presenter.onPostCreate(null); verify(view).showFragment(any(SchedulePagerFragment.class)); }