HomeListPresenter implements HomeListContract.Presenter { @Override public void deleteSelectedItems(List<Long> itemIds) { todoRepository.deleteLists(itemIds); } 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 shouldDeleteSelectedItemsFromRepo() throws Exception { ArrayList<Long> ids = new ArrayList<>(); ids.add(1L); ids.add(2L); ids.add(3L); presenter.deleteSelectedItems(ids); verify(repository).deleteLists(ids); }