@Test
public void testHead() throws Exception
{
ClientRequest request = new ClientRequest(TestPortProvider.generateURL("/GetTest"));
request.header("Accept", "text/plain");
ClientResponse<?> response = request.head();
Assert.assertEquals(200, response.getStatus());
String header = response.getResponseHeaders().getFirst("CTS-HEAD");
Assert.assertEquals("text-plain", header);
response.releaseConnection();
}