BaseMenu implements IsWidget,
                                          BaseMenuView.BaseMenuPresenter { @Override public LIElement addMenuItem(String id, String label, String i18n) { final LIElement toReturn = menuItemPresenter.getLabelMenuElement(id, label); view.getContextMenuDropdown().appendChild(toReturn); return toReturn; }  @PostConstruct @Override void initialise(); @Override LIElement addMenuItem(String id, String label, String i18n); @Override LIElement addExecutableMenuItem(String id, String label, String i18n, Event event); @Override LIElement addExecutableMenuItem(String id, String label, String i18n); @Override LIElement addExecutableMenuItemAfter(String id, String label, String i18n, LIElement previous); @Override void removeMenuItem(LIElement toRemove); @Override void mapEvent(LIElement executableMenuItem, Event toBeMapped); @Override Widget asWidget(); @Override void show(final int mx, final int my); @Override void hide(); @Override boolean isShown(); @Override BaseMenuView getView(); @Override void enableElement(Element element, boolean enabled); @Override boolean isDisabled(final Element element); @Override void onContextMenuEvent(ContextMenuEvent event);  }
@Test public void addMenuItem() { String id = "TEST-ID"; String label = "TEST-LABEL"; String i18n = "TEST-i18n"; baseMenu.addMenuItem(id, label, i18n); verify(contextMenuDropdownMock, times(1)).appendChild(menuItemPresenterMock.getLabelMenuElement(id, label)); }