workingMemory.startProcess("org.drools.actions");
assertEquals(3, list.size());
assertEquals("SomeText", list.get(0));
assertEquals("MyActionNode", list.get(1));
assertEquals("MyActionNode", list.get(2));
Iterator<?> iterator = workingMemory.iterateObjects(new ObjectFilter() {
public boolean accept(Object object) {
return object instanceof Message;
}
});
assertTrue(iterator.hasNext());