doTestAegisRead(data);
}
@SuppressWarnings("unchecked")
public void doTestAegisRead(String data) throws Exception {
Service s = new JAXRSServiceImpl(Collections.singletonList(c), true);
s.put("readXsiType", true);
AegisDatabinding binding = new AegisDatabinding();
binding.initialize(s);
DataBindingProvider p = new DataBindingProvider(binding);
ByteArrayInputStream is = new ByteArrayInputStream(data.getBytes());
Book book = (Book)p.readFrom((Class)Book.class, Book.class,