new Annotation[]{}, MediaType.APPLICATION_JSON_TYPE,
new MetadataMap<String, String>(), is);
ByteArrayOutputStream os = new ByteArrayOutputStream();
XMLStreamWriter writer = StaxUtils.createXMLStreamWriter(os);
StaxUtils.copy(doc, writer);
writer.writeEndDocument();
String s2 = os.toString();
assertTrue(s2.contains("<group>b</group><name>a</name>"));
}
@Test