{
MockServletContext servletContext = new MockServletContext();
MockHttpSession session = new MockHttpSession(servletContext);
MockHttpServletRequest request = new MockHttpServletRequest(session);
ExternalContext externalContext = new MockExternalContext(servletContext, request);
ContextAdaptor sessionAdaptor = new ServletSessionImpl(session);
ContextAdaptor requestAdaptor = new ServletRequestImpl(request);
Context appContext = new FacesApplicationContext(externalContext);
appContext.set(
Seam.getComponentName(ConversationEntries.class) + ".component",
new Component(ConversationEntries.class, appContext)