ListDetailPresenter implements ListDetailContract.Presenter { @Override public void onDestroyDeleteActionMode() { isInActionMode = false; view.onExitDeleteActionMode(); } ListDetailPresenter(TodoRepository todoRepository, long listId); @Override void init(); @Override void addNewTask(String taskTitle); @Override void onTaskItemCheckedChanged(Task task, boolean isDone); @Override void onTaskItemClicked(Task task); @Override void onTaskItemLongClicked(Task task); @Override void onDestroyDeleteActionMode(); @Override void deleteSelectedItems(List<Long> itemIds); @Override void onEditActionExpanded(); @Override void onEditActionCollapsed(String updatedTitle); @Override void onDeleteMenuItemClicked(); @Override void attachView(ListDetailContract.View view); @Override void detachView(); @Override void onDestroy();  }
@Test public void shouldInvokeOnExitWhenActionModeDestroyed() throws Exception { presenter.onDestroyDeleteActionMode(); verify(view).onExitDeleteActionMode(); }