MenuItemRendererFactory menuItemRendererFactory =
new ShardLinkMenuItemRendererFactory(
new TestMenuItemRendererFactory(outputBufferFactory));
DefaultMenuSeparatorRendererSelector menuSeparatorRendererSelector =
new DefaultMenuSeparatorRendererSelector(
new ShardLinkMenuSeparatorRendererFactory(
new TestSimpleMenuSeparatorRendererFactory()),
new AssetResolverMock("assetResolverMock", expectations),
new DefaultStylePropertyResolver(null, null));
// Create the Renderers which will render the shard link Menu
SeparatorRenderer orientationSeparator
= menuSeparatorRendererSelector.selectMenuSeparator(menu);
TestMenuBufferLocator locator
= new TestMenuBufferLocator(orientationSeparator);
MenuItemRendererSelector menuItemRendererSelector =
new DefaultMenuItemRendererSelector(menuItemRendererFactory,