StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
List<?> list = new ArrayList<Object>();
ksession.setGlobal( "list",
list );
ksession.insert( new Person( "name",
34 ) );
ksession.fireAllRules();
ksession.dispose();
assertEquals( 1,
list.size() );
assertEquals( new Person( "name",
34 ),
list.get( 0 ) );
}