public void testWorkingMemoryView() throws Exception {
RuleBase ruleBase = RuleBaseFactory.newRuleBase();
AbstractWorkingMemory session = (AbstractWorkingMemory) ruleBase.newStatefulSession();
session.insert("Test1");
session.insert("Test2");
Object[] objects = session.iterateObjectsToList().toArray();
assertEquals(2, objects.length);
assertTrue(("Test1".equals(objects[0]) && "Test2".equals(objects[1])) ||
("Test2".equals(objects[0]) && "Test1".equals(objects[1])));
}