@Test
public void testXmlOutletCreateIdAttributes() throws Exception
{
SourceElement rootElement = new SourceElement("root");
rootElement.getChildren().add(new SourceElement("child"));
ControllerState controllerState = new ControllerState();
controllerState.setRootElement(rootElement);
XmlOutlet xmlOutlet = new XmlOutlet(new QualifiedName("test"));
xmlOutlet.setCreateIdAttributes(true);
OutletResult result = xmlOutlet.execute(controllerState);
assertEquals(
"<root id=\"1\">\n <child id=\"2\"/>\n</root>\n",