BookmarksPresenter extends BasePresenter<BookmarksView> { void onSelectBookmark(int position) { if (position < bookmarks.size()) { currBookmark = bookmarks.get(position); getView().startBookmarkAction(currBookmark.name); } } @Inject  BookmarksPresenter(BookmarksManager bookmarksManager, Librarian myLibrarian); @Override void onViewCreated();  }
@Test public void onSelectBookmark() throws Exception { presenter.onRefresh(); presenter.onSelectBookmark(0); verify(view).startBookmarkAction(eq(bookmarksWithoutTag.get(0).name)); }