MockServletConfig servletConfig = new MockServletConfig();
ResourceLocatingServletContext servletContent = new ResourceLocatingServletContext(new File(appRoot));
servletConfig.setServletContext(servletContent);
ServletConfigFactoryBean.setServletConfig(servletConfig);
SpringComponentManager scm = new SpringComponentManager(new String[] {"/WEB-INF/assembly/boot/datasource.xml"}, new String[] {"/WEB-INF/assembly/*.xml"}, servletContent, appRoot );
engine = new JetspeedEngine(config, appRoot, servletConfig, scm );
Jetspeed.setEngine(engine);
engine.start();
getContext().put(ENGINE_ATTR, engine );