@Test
public void testJAXBRead() throws Exception {
String data = "{\"Book\":{\"id\":127,\"name\":\"CXF\",\"state\":\"\"}}";
Service s = new JAXRSServiceImpl(Collections.singletonList(c), true);
DataBinding binding = new JAXBDataBinding();
binding.initialize(s);
DataBindingJSONProvider<Book> p = new DataBindingJSONProvider<Book>();
p.setDataBinding(binding);
ByteArrayInputStream is = new ByteArrayInputStream(data.getBytes());
Book book = (Book)p.readFrom(Book.class, Book.class,
new Annotation[0], MediaType.APPLICATION_JSON_TYPE,