TestDOMOutputBuffer textBuffer = new TestDOMOutputBuffer();
Element b = textBuffer.allocateElement("b");
Text textElement = domFactory.createText();
textElement.append(testTextString);
b.addTail(textElement);
textBuffer.addElement(b);
// Create the test text, label, and then the menu item
MenuText text = entity.createTestMenuText(textBuffer);
MenuLabel label = entity.createTestMenuLabel(text);
MenuItem item = entity.createTestMenuItem(label);