BookmarksPresenter extends BasePresenter<BookmarksView> { void onClickBookmarkEdit() { if (currBookmark != null) { getView().openBookmarkDialog(currBookmark); } } @Inject  BookmarksPresenter(BookmarksManager bookmarksManager, Librarian myLibrarian); @Override void onViewCreated();  }
@Test public void onClickBookmarkEdit() throws Exception { presenter.onRefresh(); Mockito.reset(view); presenter.onSelectBookmark(0); presenter.onClickBookmarkEdit(); verify(view).openBookmarkDialog(eq(bookmarksWithoutTag.get(0))); }