List list = new ArrayList();
ksession.setGlobal( "list", list );
FactHandle handle = (FactHandle) ksession.insert( "trigger" );
new Thread( new Runnable(){
public void run(){ ksession.fireUntilHalt(); }
} ).start();
Thread.sleep( 150 );
assertEquals( 2, list.size() ); // delay 0, repeat after 100
assertEquals( java.util.Arrays.asList( 0, 0 ), list );