String value = "<Chapter><title>The Book</title><id>2</id></Chapter>";
m.setContent(InputStream.class, new ByteArrayInputStream(value.getBytes()));
List<Object> params = JAXRSUtils.processParameters(ori, values, m);
assertEquals(1, params.size());
Chapter c = (Chapter)params.get(0);
assertNotNull(c);
assertEquals(2L, c.getId());
assertEquals("The Book", c.getTitle());
}