+ "<name>superbook</name><id>111</id>"
+ "</BookNoRootElement>";
JAXBElementProvider provider = new JAXBElementProvider();
provider.setUnmarshallAsJaxbElement(true);
ByteArrayInputStream is = new ByteArrayInputStream(data.getBytes());
BookNoRootElement book = (BookNoRootElement)provider.readFrom(
(Class)BookNoRootElement.class, BookNoRootElement.class,
new Annotation[0], MediaType.TEXT_XML_TYPE, new MetadataMap<String, String>(), is);
assertEquals(111L, book.getId());
assertEquals("superbook", book.getName());
}