public void testRolloverImage()
throws Exception {
MenuItemRendererSelector selector = createSelector();
Menu menu = createMenu(StylesBuilder.getCompleteStyles(
"mcs-menu-image-style: rollover; " +
"mcs-menu-text-style: none"));
MenuBuffer buffer = createMenuBuffer();
MenuBufferLocator locator = createMenuBufferLocator(buffer);
MenuItemRenderer renderer = selector.selectMenuItemRenderer(menu);
assertNotNull("No renderer selected", renderer);
renderer.render(locator, (MenuItem) menu.get(0));
String string = toString(buffer);
//System.out.println("String: " + string);
assertEquals("Output does not match",
"<link" +