HttpRequest request = new BasicHttpRequest("GET", "/");
executor.preProcess(request, httprocessor, context);
Mockito.verify(httprocessor).process(request, context);
Mockito.when(conn.receiveResponseHeader()).thenReturn(
new BasicHttpResponse(HttpVersion.HTTP_1_1, 200, "OK"));
HttpResponse response = executor.execute(request, conn, context);
Mockito.verify(conn).sendRequestHeader(request);
Mockito.verify(conn).flush();