private void getBookAegis(String endpointAddress, String type, String mHeader) throws Exception {
WebClient client = WebClient.create(endpointAddress,
Collections.singletonList(new AegisElementProvider<Object>()));
if (mHeader != null) {
client = client.header("X-HTTP-Method-Override", mHeader);
}
Book book = client.accept(type).get(Book.class);
assertEquals(124L, book.getId());
assertEquals("CXF in Action - 2", book.getName());