provider.setJaxbElementClassNames(Collections.singletonList(Book.class.getName()));
WebClient wc = WebClient.create(address, Collections.singletonList(provider));
wc.accept("application/xml");
wc.type("application/xml");
SuperBook book = new SuperBook("SuperBook2", 999L);
Book book2 = wc.invoke("POST", book, Book.class, Book.class);
assertEquals("SuperBook2", book2.getName());
}
@Test