StatefulKnowledgeSession ksession = createKnowledgeSession( kbase );
// create working memory mock listener
RuleRuntimeEventListener wml = Mockito.mock( RuleRuntimeEventListener.class );
ksession.addEventListener( wml );
FactHandle personFH = ksession.insert( new Person( "Toni" ) );
FactHandle petFH = ksession.insert( new Pet( "Toni" ) );
int fired = ksession.fireAllRules();