WorkbenchLayoutImpl implements WorkbenchLayout { public void addWorkbenchProfileCssClass(@Observes WorkbenchProfileCssClass workbenchProfileCssClass) { root.removeStyleName(root.getStyleName()); root.addStyleName(UF_ROOT_CSS_CLASS); root.addStyleName(workbenchProfileCssClass.getClassName()); } 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 addWorkbenchProfileCssClass() { when(root.getStyleName()).thenReturn("current stylename"); workbenchLayout.addWorkbenchProfileCssClass(new WorkbenchProfileCssClass("dora")); verify(root).removeStyleName("current stylename"); verify(root).addStyleName(WorkbenchLayoutImpl.UF_ROOT_CSS_CLASS); verify(root).addStyleName("dora"); }