// load up the knowledge base
KnowledgeBase kbase = loadKnowledgeBaseFromString( str );
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
org.kie.api.event.rule.AgendaEventListener ael = mock( org.kie.api.event.rule.AgendaEventListener.class );
ksession.addEventListener( ael );
ksession.insert( new Person( "Bob", 19 ) );
ksession.insert( new Cheese( "brie", 10 ) );
ksession.fireAllRules();