assertEquals("<foo>bar</foo>", conv.toString(out, null));
}
public void testToDomSourceByStAXSource() throws Exception {
XmlConverter conv = new XmlConverter();
StAXSource source = conv.toStAXSource("<foo>bar</foo>", null);
DOMSource out = conv.toDOMSource(source);
assertNotSame(source, out);
assertEquals("<foo>bar</foo>", conv.toString(out, null));
}