@Test
public void testGetBookWithRequestScope() {
// the BookStore method which will handle this request depends on the injected HttpHeaders
WebClient wc = WebClient.create("http://localhost:" + PORT + "/test/request/bookstore/booksecho2");
wc.type("text/plain").accept("text/plain");
wc.header("CustomHeader", "custom-header");
String value = wc.post("CXF", String.class);
assertEquals("CXF", value);
assertEquals("custom-header", wc.getResponse().getMetadata().getFirst("CustomHeader"));
}