public void testBookFromHttpRequestParameters() throws Exception {
WebClient wc = WebClient.create("http://localhost:" + PORT + "/bookstorestorage/bookforms2",
"foo", "bar", null);
wc.accept("application/xml");
Response r = wc.form(new Form().param("name", "CXF Rocks").param("id", "123"));
Book b = readBook((InputStream)r.getEntity());
assertEquals("CXF Rocks", b.getName());
assertEquals(123L, b.getId());
}