Thread.currentThread().setContextClassLoader(ctx.getParentClassLoader());
MockServletSetup servlet = ctx.findServlet(path);
List<Filter> filters = ctx.getFilters(servlet, path);
WebApplicationServletContext wrapper = new WebApplicationServletContext(ctx, ctx.application);
MockHttpServletRequest httpRequest = new MockHttpServletRequest(wrapper, ctx.getSessionManager(), path);
for (String name : request.getCookies().keySet()) {
httpRequest.addCookie(request.getCookies().get(name));
}