ClientRequest request = new ClientRequest("/foo", executor);
request.body("text/plain", "hello world");
Assert.assertEquals("hello world", request.postTarget(String.class));
request = new ClientRequest("/foo", executor);
request.header("a", "hello");
request.queryParameter("b", "world");
Assert.assertEquals("hello world", request.getTarget(String.class));
}
}