ShowcaseEntryPoint extends DefaultWorkbenchEntryPoint { @Override protected void setupMenu() { final Menus menus = MenuFactory .newTopLevelMenu(constants.Authoring()).withItems(getAuthoringViews()).endMenu() .newTopLevelMenu(constants.Deploy()).withItems(getDeploymentViews()).endMenu() .newTopLevelMenu(constants.Process_Management()).withItems(getProcessManagementViews()).endMenu() .newTopLevelMenu(constants.Work()).withItems(getWorkViews()).endMenu() .newTopLevelMenu(constants.Dashboards()).withItems(getDashboardsViews()).endMenu() .newTopLevelMenu(constants.Extensions()).withItems(menusHelper.getExtensionsViews()).endMenu() .build(); menuBar.addMenus(menus); menusHelper.addRolesMenuItems(); menusHelper.addGroupsMenuItems(); menusHelper.addWorkbenchConfigurationMenuItem(); menusHelper.addUtilitiesMenuItems(); } @Inject  ShowcaseEntryPoint(final Caller<AppConfigService> appConfigService,
                              final ActivityBeansCache activityBeansCache,
                              final SyncBeanManager iocManager,
                              final User identity,
                              final DefaultAdminPageHelper adminPageHelper,
                              final DefaultWorkbenchFeaturesMenusHelper menusHelper,
                              final WorkbenchMegaMenuPresenter menuBar,
                              final DefaultWorkbenchErrorCallback defaultWorkbenchErrorCallback,
                              final AppFormerJsBridge appFormerJsBridge); @Produces @ApplicationScoped MainBrand createBrandLogo();  }
@Test public void setupMenuTest() { showcaseEntryPoint.setupMenu(); ArgumentCaptor<Menus> menusCaptor = ArgumentCaptor.forClass(Menus.class); verify(menuBar).addMenus(menusCaptor.capture()); Menus menus = menusCaptor.getValue(); assertEquals(6, menus.getItems().size()); assertEquals(showcaseEntryPoint.constants.Authoring(), menus.getItems().get(0).getCaption()); assertEquals(showcaseEntryPoint.constants.Deploy(), menus.getItems().get(1).getCaption()); assertEquals(showcaseEntryPoint.constants.Process_Management(), menus.getItems().get(2).getCaption()); assertEquals(showcaseEntryPoint.constants.Work(), menus.getItems().get(3).getCaption()); assertEquals(showcaseEntryPoint.constants.Dashboards(), menus.getItems().get(4).getCaption()); assertEquals(showcaseEntryPoint.constants.Extensions(), menus.getItems().get(5).getCaption()); verify(menusHelper).addRolesMenuItems(); verify(menusHelper).addGroupsMenuItems(); verify(menusHelper).addWorkbenchConfigurationMenuItem(); verify(menusHelper).addUtilitiesMenuItems(); }