private final static String TEST_RULE_FILE = "test_eventGenerator.drl";
@Test
public void testEventGenerationMaxItems() throws DroolsParserException, IOException, Exception{
KieBase kbase = loadKnowledgeBase(TEST_RULE_FILE);
KieSession ksession = kbase.newKieSession();
// create unrestricted event generator
SimpleEventGenerator myGenerator = new SimpleEventGenerator(ksession , new SimpleEventListener(ksession));
// generate 10 events, starting from the session clock
myGenerator.addEventSource("Conveyor1", new Event(EventType.CUSTOM, null), PseudoSessionClock.timeInSeconds(4), PseudoSessionClock.timeInSeconds(6), 0, 10);