servletContext = createNiceMock(ServletContext.class);
request = createNiceMock(HttpServletRequest.class);
response = createNiceMock(HttpServletResponse.class);
expect(response.getWriter()).andReturn(new PrintWriter(System.out)).anyTimes();
expect(response.getOutputStream()).andReturn(new Servlet3OutputStream(null) {
@Override
public void write(int b) throws IOException {
}
}).anyTimes();