}
private void doTestGetBookWithResourceContext(String address) throws Exception {
WebClient wc = WebClient.create(address);
WebClient.getConfig(wc).getHttpConduit().getClient().setReceiveTimeout(1000000);
wc.accept("application/xml");
wc.query("bookid", "12345");
wc.query("bookname", "bookcontext");
Book2 book = wc.get(Book2.class);
assertEquals(12345L, book.getId());
assertEquals("bookcontext", book.getName());