@Test
public void testCreateElement() {

    Node node = XmlUtils.createElement(getDocument(), "foo", "bar", null);
    String result = XmlUtils.toString(node);
    assertEquals(result, "<foo>bar</foo>");
}