@Test
public void testExecuteQueueActions() {
final RuleBase ruleBase = RuleBaseFactory.newRuleBase();
final AbstractWorkingMemory wm = (AbstractWorkingMemory) ruleBase.newStatefulSession();
final ReentrantAction action = new ReentrantAction();
wm.queueWorkingMemoryAction( action );
wm.executeQueuedActions();
assertEquals( 2, action.counter.get() );
}
@Test