@Test
public void RequestHeadersTest() throws Exception
{
ClientRequest request = new ClientRequest(TestPortProvider.generateURL("/HeadersTest/headers"));
request.header("Accept", "text/plain, text/html, text/html;level=1, */*");
request.header("Content-Type", "application/xml;charset=utf8");
ClientResponse<String> response = request.get(String.class);
Assert.assertEquals(200, response.getStatus());
String content = response.getEntity();
Assert.assertTrue(-1 < content.indexOf("Accept:"));