MenuItemViewImpl implements MenuItemView { @EventHandler("liElement") public void onClickEvent(ClickEvent event) { menuItemPresenter.onClickEvent(event); }  @Override LIElement getLabelMenuElement(); @Override void setPresenter(MenuItemPresenter menuItemPresenter); @Override void setId(String id); @Override void setDataI18nKey(String dataI18nKey); @Override void setLabel(String label); @EventHandler("liElement") void onClickEvent(ClickEvent event);  }
@Test public void onClickEvent() { ClickEvent mockClickEvent = mock(ClickEvent.class); menuItemView.onClickEvent(mockClickEvent); verify(mockMenuItemPresenter, times(1)).onClickEvent(mockClickEvent); }