String content = "test menu item";
// Create the test DOM for the text buffer
TestDOMOutputBuffer menuText = new TestDOMOutputBuffer();
menuText.appendEncoded(content);
// Create the test text, label, and then the menu item
final ConcreteMenuText text = new ConcreteMenuText(elementDetails);
text.setText(menuText);
final ConcreteMenuLabel label = new ConcreteMenuLabel(