KieSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(props);
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession(config, EnvironmentFactory.newEnvironment());
assertNotNull(ksession);
// this test would fail on creation of the work item manager if injecting session is not supported
WorkItemManager manager = ksession.getWorkItemManager();
assertNotNull(manager);
Map<String, WorkItemHandler> handlers = ((SessionConfiguration)config).getWorkItemHandlers();
assertNotNull(handlers);
assertEquals(1, handlers.size());