@SuppressWarnings("unchecked")
@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 p = new DataBindingJSONProvider();
p.setDataBinding(binding);
ByteArrayInputStream is = new ByteArrayInputStream(data.getBytes());
Book book = (Book)p.readFrom((Class)Book.class, Book.class,
new Annotation[0], MediaType.APPLICATION_JSON_TYPE,