"\n";
KnowledgeBuilderConfiguration kbConf = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration();
kbConf.setOption( LanguageLevelOption.DRL5 );
KnowledgeBase kbase = loadKnowledgeBaseFromString( kbConf, drl );
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
List list = new ArrayList();
ksession.setGlobal( "list", list );
ksession.fireAllRules();
assertTrue( ! list.isEmpty() );
assertEquals( 3, list.size() );
assertEquals( 3, list.get( 0 ) );
assertEquals( 4, list.get( 1 ) );