BaseMenuViewImpl extends Composite implements BaseMenuView<M> { @EventHandler() public void onContextMenuEvent(ContextMenuEvent event) { presenter.onContextMenuEvent(event); }  @Override void init(final M presenter); @Override UListElement getContextMenuDropdown(); @EventHandler() void onContextMenuEvent(ContextMenuEvent event);  }
@Test public void onContextMenuEvent() { ContextMenuEvent mockEvent = mock(ContextMenuEvent.class); baseMenuView.onContextMenuEvent(mockEvent); verify(mockBaseMenu, times(1)).onContextMenuEvent(mockEvent); }