MenuWidgetImpl extends Composite implements MenuWidget { @Override public SimplePanel getSpan() { return span; } @Inject  MenuWidgetImpl(); @Override SimplePanel getSpan(); @Override void addEntry(@NotNull MenuEntry entry);  }
@Test public void spanPanelShouldBeGot() { SimplePanel panel = menu.getSpan(); assertThat(panel, sameInstance(menu.span)); }