SelectionCardPresenter implements SelectableTextView.OnWordSelectedListener { @Override public void onWordSelected(String word) { selected = word; controller.onWordSelected(word); } @Inject  SelectionCardPresenter(SelectionCardController controller, ContextHelper contextHelper); @Override void onWordSelected(String word); void onClipTextChanged(@NonNull String clipText); void addView(SelectionCardView selectionCardView); void removeView(); void onDefineClicked(); void onSearchClicked(); void onCopyClicked(); void onWikiClicked(); void onShareClicked(); void onSettingsClicked(); static boolean isLessThanNWords(String text, int n);  }
@Test public void testOnWordSelected() throws Exception { String word = "something"; presenter.onWordSelected(word); verify(controller).onWordSelected(word); }