@Test
public void testParseMultipleRootsArtificialRoot() throws Exception {
String xml = convertToXml("{\"a\":1, \"b\":2}", new JsonXmlReader(null, false, "artificialRoot"));
Diff diff = XMLUnit.compareXML("<artificialRoot><a>1</a><b>2</b></artificialRoot>", xml);
assertTrue(diff.toString(), diff.similar());
}
@Test
public void testParseMultipleRootsArtificialRootWithNamespace() throws Exception {
String xml = convertToXml("{\"a\":1, \"b\":2}", new JsonXmlReader("http://javacrumbs.net/test", false, "artificialRoot"));