super.setUp();
getMockFactory().refresh();
servletModule = new ServletTestModule(getMockFactory());
strutsModule = new ActionTestModule(getStrutsMockFactory());
MockServletContext app = getMockFactory().getMockServletContext();
app.addResourcePath("/WEB-INF/toolbox.xml","/WEB-INF/toolbox.xml");
app.setResourceAsStream("/WEB-INF/toolbox.xml",
new FileInputStream("./WEB-INF/toolbox.xml"));
MockServletConfig config = getMockFactory().getMockServletConfig();
config.setInitParameter(
"org.apache.velocity.properties","WEB-INF/velocity.properties");
MapMessageResources resources = new MapMessageResources();
resources.putMessages("WEB-INF/classes/ApplicationResources.properties");
strutsModule.setResources(resources);
MockServletContext ctx = getMockFactory().getMockServletContext();
ctx.setRealPath("/", "");
rollerContext = new MockRollerContext();
rollerContext.init(ctx);
JspFactory.setDefaultFactory(new MockJspFactory(getMockFactory()));
}