BookmarksPresenter extends BasePresenter<BookmarksView> { void onSetTag(Tag tag) { updateBookmarks(tag); } @Inject  BookmarksPresenter(BookmarksManager bookmarksManager, Librarian myLibrarian); @Override void onViewCreated();  }
@Test public void onSetTag() throws Exception { Tag tag = new Tag(1, "abraham"); presenter.onSetTag(tag); verify(bookmarksManager).getAll(eq(tag)); verify(view).updateBookmarks(bmCaptor.capture()); List<Bookmark> bookmarks = bmCaptor.getValue(); assertNotNull(bookmarks); assertThat(bookmarks.size(), equalTo(bookmarksWithTag.size())); }