HomeListPresenter implements HomeListContract.Presenter { @Override public void onCreateListItemClicked() { if (isInActionMode) { view.finishActionMode(); } view.showAddNewList(); } HomeListPresenter(TodoRepository todoRepository); @Override void init(); @Override void loadAllLists(); @Override void attachView(HomeListContract.View view); @Override void detachView(); @Override void onDestroy(); @Override void onCreateListItemClicked(); @Override void onFloatingActionButtonClicked(); @Override void onListItemClicked(TodoList list); @Override void onListItemLongClicked(TodoList list); @Override void onDestroyActionMode(); @Override void deleteSelectedItems(List<Long> itemIds);  }
@Test public void shouldShowAddListWhenCreateListClicked() throws Exception { presenter.onCreateListItemClicked(); verify(view).showAddNewList(); }