SelectionCardPresenter implements SelectableTextView.OnWordSelectedListener { public void onSettingsClicked() { contextHelper.openSettings(); controller.onButtonClicked(); } @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 testOnSettingsClicked() throws Exception { presenter.onSettingsClicked(); verify(contextHelper).openSettings(); verify(controller).onButtonClicked(); }