MultiTabWorkbenchPanelView extends AbstractMultiPartWorkbenchPanelView<MultiTabWorkbenchPanelPresenter> { @Override protected MultiPartWidget setupWidget() { uberTabPanel.addStyleName("uf-multitab-panel"); Layouts.setToFillParent(uberTabPanel); addOnFocusHandler(uberTabPanel); addSelectionHandler(uberTabPanel); return uberTabPanel; } @Inject  MultiTabWorkbenchPanelView(final UberTabPanel uberTabPanel); @Override Collection<PartDefinition> getParts();  }
@Test public void setupWidget() { view.setupWidget(); verify(uberTabPanel).addSelectionHandler(any(SelectionHandler.class)); verify(uberTabPanel).addOnFocusHandler(any(Command.class)); }