bean.getOutInterceptors().add(sigInterceptor);
bean.getInInterceptors().add(new XmlSigInInterceptor());
WebClient wc = bean.createWebClient();
try {
Book book = wc.post(new Book("CXF", 126L), Book.class);
assertEquals(126L, book.getId());
} catch (ServerWebApplicationException ex) {
fail(ex.getMessage());
} catch (ClientWebApplicationException ex) {
if (ex.getCause() != null && ex.getCause().getMessage() != null) {
fail(ex.getCause().getMessage());