WorkbenchLayoutImpl implements WorkbenchLayout { @Override public void maximize(final Widget w) { maximize(w, null); } WorkbenchLayoutImpl(); @Inject  WorkbenchLayoutImpl(SyncBeanManager iocManager,
                               HeaderPanel root,
                               WorkbenchDragAndDropManager dndManager,
                               UberfireDocksContainer uberfireDocksContainer,
                               WorkbenchPickupDragController dragController,
                               Div headerPanel,
                               Div footerPanel); @Override HeaderPanel getRoot(); @Override HasWidgets getPerspectiveContainer(); @Override void onBootstrap(); @Override void onResize(); @Override void resizeTo(int width,
                         int height); @Override void maximize(final Widget w); @Override void maximize(final Widget w,
                         final Command callback); @Override void unmaximize(final Widget w); @Override void unmaximize(final Widget w,
                           final Command callback); @Override void setMarginWidgets(boolean isStandaloneMode,
                                 Set<String> headersToKeep); void addWorkbenchProfileCssClass(@Observes WorkbenchProfileCssClass workbenchProfileCssClass); static final String UF_MAXIMIZED_PANEL; static final String UF_ROOT_CSS_CLASS; }
@Test public void testMaximize() { workbenchLayout.maximize(widget); verify(widget).addStyleName(WorkbenchLayoutImpl.UF_MAXIMIZED_PANEL); verify(((RequiresResize) widget), never()).onResize(); }