HttpConversationContextManagerProvider managerProvider = new DefaultHttpConversationContextManagerProvider();
managerProvider.setConversationContextFactory(new DefaultConversationContextFactory());
managerProvider.setMonitoringFrequency(1L);
managerProvider.init();
MockConversationAdapter.init(request, managerProvider);
ConversationContext context = ConversationUtil.begin(mockConversationName, 50L);
context.addTimeoutListener(this);
context.setMaxIdleTime(50L);
try {
Thread.sleep(2000L);
} catch (InterruptedException e) {
e.printStackTrace();
}