// 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(
new ElementDetailsStub(), text);
final ConcreteMenuItem item = new ConcreteMenuItem(
new ElementDetailsStub(), label);
item.setHref(new LiteralLinkAssetReference("the href"));