MenuWidgetImpl extends Composite implements MenuWidget { @Override public void addEntry(@NotNull MenuEntry entry) { entityPanel.add(entry); } @Inject  MenuWidgetImpl(); @Override SimplePanel getSpan(); @Override void addEntry(@NotNull MenuEntry entry);  }
@Test public void entryShouldBeAdded() { menu.addEntry(entry); verify(menu.entityPanel).add(entry); }