testToDOM("<x><y/></x>", Node.class, Element.class);
}
@Test
public void test_String2DOMSource() throws IOException, SAXException, TransformerException {
DefaultMessage message = newMessage();
message.setContent("<x><y/></x>");
DOMSource doms = message.getContent(DOMSource.class);
StringWriter writer = new StringWriter();
StreamResult result = new StreamResult(writer);
TransformerFactory.newInstance().newTransformer().transform(doms, result);
XMLAssert.assertXMLEqual("<x><y/></x>", writer.toString());
}