// create conversation
ConversationContext conversationContext = new ConversationContext();
conversationContext.setActive(true);
Conversation conversation = new ConversationImpl(session.getId(), getWebBeansContext());
conversation.begin();
ConversationManager conversationManager = getWebBeansContext().getConversationManager();
conversationManager.addConversationContext(conversation, conversationContext);
getWebBeansContext().registerService(ConversationService.class, new MockConversationService(session, conversation));