@Test
public void testPostBookNewMediaType() {
String address = "http://localhost:" + PORT + "/bookstore/bookheaders/simple";
WebClient wc = createWebClientPost(address);
wc.header("newmediatype", "application/v1+xml");
Book book = wc.post(new Book("Book", 126L), Book.class);
assertEquals(124L, book.getId());
validatePostResponse(wc);
assertEquals("application/v1+xml", wc.getResponse().getHeaderString("newmediatypeused"));
}