HttpClientConnection conn = Mockito.mock(HttpClientConnection.class);
HttpRequestExecutor executor = new HttpRequestExecutor();
HttpContext context = new BasicHttpContext();
HttpEntityEnclosingRequest request = new BasicHttpEntityEnclosingRequest("POST", "/");
request.addHeader(HTTP.EXPECT_DIRECTIVE, HTTP.EXPECT_CONTINUE);
HttpEntity entity = Mockito.mock(HttpEntity.class);
request.setEntity(entity);
executor.preProcess(request, httprocessor, context);
Mockito.verify(httprocessor).process(request, context);