The JavaEE API comes with the HttpServletResponseWrapper which, to quote the javadoc, \"provides a convenient implementation of the HttpServletResponse interface that can be
In the past I've used the objects provide in the spring framework. In particular, this should work: http://static.springsource.org/spring/docs/2.0.x/api/org/springframework/mock/web/MockHttpServletRequest.html