public void testPostObjectGetCollection() throws Exception {
String endpointAddress =
"http://localhost:" + PORT + "/bookstore/collectionBook";
WebClient wc = WebClient.create(endpointAddress);
wc.accept("application/xml").type("application/xml");
Book b1 = new Book("Book", 666L);
List<Book> books = new ArrayList<Book>(wc.postObjectGetCollection(b1, Book.class));
assertNotNull(books);
assertEquals(1, books.size());
Book b = books.get(0);