ksession = kagent.getKnowledgeBase().newStatefulKnowledgeSession();
ksession.setGlobal( "list",
list );
ksession.insert( new Person( "John", 34 ) );
ksession.fireAllRules();
ksession.dispose();
assertEquals( 2,
list.size() );
assertTrue( list.contains( "Rule1" ) );
assertTrue( list.contains( "Rule2" ) );
list.clear();