Map<String, Object> props = new HashMap<String, Object>();
props.put("saml.roles", Collections.singletonList("admin"));
props.put("saml.auth", Collections.singletonList("smartcard"));
WebClient wc = createWebClient(address, props);
wc.type(MediaType.APPLICATION_XML).accept(MediaType.APPLICATION_XML);
Book book = wc.post(new Book("CXF", 125L), Book.class);
assertEquals(125L, book.getId());
}