}
}
public void testRequestContentTypeAndEncoding() throws Exception {
HttpContext context = new HttpExecutionContext(null);
BasicHttpEntityEnclosingRequest request = new BasicHttpEntityEnclosingRequest("POST", "/");
BasicHttpEntity entity = new BasicHttpEntity();
entity.setContentType("whatever");
entity.setContentEncoding("whatever");
request.setEntity(entity);
RequestContent interceptor = new RequestContent();
interceptor.process(request, context);
Header h1 = request.getFirstHeader(HTTP.CONTENT_TYPE);
assertNotNull(h1);
assertEquals("whatever", h1.getValue());
Header h2 = request.getFirstHeader(HTTP.CONTENT_ENCODING);
assertNotNull(h2);
assertEquals("whatever", h2.getValue());
}