public class SpringTapestryIntegrationTests extends TestCase {
public void testSpringIntegration() throws Exception {
MockServletContext servletContext = new MockServletContext();
servletContext.addInitParameter(ContextLoader.CONFIG_LOCATION_PARAM, "classpath:org/springmodules/web/tapestry/applicationContext.xml");
ContextLoader contextLoader = new ContextLoader();
contextLoader.initWebApplicationContext(servletContext);
MockServletConfig servletConfig = new MockServletConfig(servletContext, "servlet");
ApplicationServlet servlet = new ApplicationServlet();
servlet.init(servletConfig);