ByteArrayInputStream is = new ByteArrayInputStream(data.getBytes());
Object o = provider.readFrom(
(Class)m.getParameterTypes()[0], m.getGenericParameterTypes()[0],
new Annotation[0], MediaType.TEXT_XML_TYPE, new MetadataMap<String, String>(), is);
assertNotNull(o);
TagVO2 t1 = null;
TagVO2 t2 = null;
if (!isArray) {
assertEquals(2, ((List)o).size());
t1 = (TagVO2)((List)o).get(0);
t2 = (TagVO2)((List)o).get(1);
} else {
assertEquals(2, ((Object[])o).length);
t1 = (TagVO2)((Object[])o)[0];
t2 = (TagVO2)((Object[])o)[1];
}
assertEquals("A", t1.getName());
assertEquals("B", t1.getGroup());
assertEquals("C", t2.getName());
assertEquals("D", t2.getGroup());
}