ServletLifecycle.beginApplication(servletContext);
MockHttpSession session = new MockHttpSession(servletContext);
MockHttpServletRequest request = new MockHttpServletRequest(session);
final ExternalContext externalContext = new MockExternalContext(
servletContext, request);
final Map sessionAdaptor = new ServletRequestSessionMap(request);
Map requestAdaptor = new ServletRequestMap(request);
Context appContext = new ApplicationContext(externalContext
.getApplicationMap());
installComponent(appContext, ConversationEntries.class);
installComponent(appContext, Manager.class);