TagsPresenter extends BasePresenter<TagsView> { void onTagSelected(int pos) { if (pos < tags.size()) { changeListener.onTagSelect(tags.get(pos).tag()); } } @Inject  TagsPresenter(TagsManager tagsManager); @Override void onViewCreated();  }
@Test public void onTagSelected() throws Exception { presenter.setChangeListener(changeListener); presenter.onViewCreated(); Mockito.reset(view); presenter.onTagSelected(0); verify(changeListener).onTagSelect(any(Tag.class)); }