}
@Test
public void testWriteRequestHeaders() throws Exception {
GHttpEndpoint endpoint = createEndpoint("ghttp://somewhere.com:9090/path");
HTTPRequest request = createRequest();
// Shouldn't be filtered out
exchange.getIn().setHeader("test", "abc");
// Should be filtered out
exchange.getIn().setHeader("org.apache.camel.whatever", "xyz");
exchange.getIn().setHeader("CamelWhatever", "xyz");
exchange.getIn().setHeader(Exchange.HTTP_QUERY, "x=y");
binding.writeRequestHeaders(endpoint, exchange, request);
assertEquals(1, request.getHeaders().size());
assertEquals("test", request.getHeaders().get(0).getName());
assertEquals("abc", request.getHeaders().get(0).getValue());
}