@Test
public void testExecuteQueueActions() {
InternalKnowledgeBase kBase = (InternalKnowledgeBase) KnowledgeBaseFactory.newKnowledgeBase();
StatefulKnowledgeSessionImpl ksession = (StatefulKnowledgeSessionImpl)kBase.newStatefulKnowledgeSession();
final ReentrantAction action = new ReentrantAction();
ksession.queueWorkingMemoryAction( action );
ksession.executeQueuedActions();
assertEquals( 2, action.counter.get() );
}
@Test