public void testGetBookFromResponseWithWebClient() throws Exception {
String address = "http://localhost:" + PORT + "/bookstore/genericresponse/123";
WebClient wc = WebClient.create(address,
Collections.singletonList(
new ResponseReader(Book.class)));
Response r = wc.accept("application/xml").get();
assertEquals(200, r.getStatus());
Book book = (Book)r.getEntity();
assertEquals(123L, book.getId());
}