assertEquals(1, KieSession.getWorkingMemoryEventListeners().size());
assertTrue(KieSession.getWorkingMemoryEventListeners().toArray()[0] instanceof MockWorkingMemoryEventListener);
KieSession.setGlobal("list", list);
KieSession.insert(new Person());
KieSession.fireAllRules();
//this assert to show that our listener was called X number of times.
// once from agenda listener, and second from working memory event listener
assertEquals(2, counterFromListener);
}