public void testGetBook123Client() throws Exception {
String baseAddress = "http://localhost:" + PORT + "/test/services/rest";
BookStoreJaxrsJaxws proxy = JAXRSClientFactory.create(baseAddress,
BookStoreJaxrsJaxws.class);
HTTPConduit conduit = (HTTPConduit)WebClient.getConfig(proxy).getConduit();
Book b = proxy.getBook(new Long("123"));
assertEquals(123, b.getId());
assertEquals("CXF in Action", b.getName());
HTTPConduit conduit2 = (HTTPConduit)WebClient.getConfig(proxy).getConduit();
assertSame(conduit, conduit2);
conduit.getClient().setAutoRedirect(true);
b = proxy.getBook(new Long("123"));
assertEquals(123, b.getId());