ShowcaseEntryPoint extends DefaultWorkbenchEntryPoint { protected List<? extends MenuItem> getAuthoringViews() { return Arrays.asList( MenuFactory.newSimpleItem(constants.Project_Authoring()).perspective(LIBRARY).endMenu().build().getItems().get(0), MenuFactory.newSimpleItem(constants.artifactRepository()).perspective(GUVNOR_M2REPO).endMenu().build().getItems().get(0), MenuFactory.newSimpleItem(constants.Administration()).perspective(ADMINISTRATION).endMenu().build().getItems().get(0) ); } @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 getAuthoringViewsTest() { List<? extends MenuItem> authoringMenuItems = showcaseEntryPoint.getAuthoringViews(); assertEquals(3, authoringMenuItems.size()); assertEquals(showcaseEntryPoint.constants.Project_Authoring(), authoringMenuItems.get(0).getCaption()); assertEquals(showcaseEntryPoint.constants.artifactRepository(), authoringMenuItems.get(1).getCaption()); assertEquals(showcaseEntryPoint.constants.Administration(), authoringMenuItems.get(2).getCaption()); }