assertTrue(counterFromListener > 0);
}
@Test
public void testStatelessWithGroupedListeners() throws Exception {
StatelessKieSession StatelessKieSession = (StatelessKieSession) context.getBean("statelessWithGroupedListeners");
assertEquals(1, StatelessKieSession.getRuleRuntimeEventListeners().size());
StatelessKieSession.execute(new Person());
// 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);
}