public void testReadResponseHeaders() throws Exception {
GHttpEndpoint endpoint = createEndpoint(getBaseUri("ghttp") + "/test");
HTTPRequest request = new HTTPRequest(endpoint.getEndpointUrl());
request.addHeader(new HTTPHeader("test", "abc"));
request.addHeader(new HTTPHeader("content-type", "text/plain"));
HTTPResponse response = service.fetch(request);
binding.readResponseHeaders(endpoint, exchange, response);
assertEquals(200, exchange.getOut().getHeader(Exchange.HTTP_RESPONSE_CODE));
assertEquals("abc", exchange.getOut().getHeader("test"));
assertEquals("text/plain", exchange.getOut().getHeader("content-type"));
}