}
}
@Test
public void testServerWebApplicationExceptionXMLWithProxy() throws Exception {
ResponseReader reader = new ResponseReader();
reader.setEntityClass(Book.class);
BookStore proxy = JAXRSClientFactory.create("http://localhost:" + PORT,
BookStore.class, Collections.singletonList(reader));
try {
proxy.throwExceptionXML();
fail("Exception expected");