@Test
public void getEvents() {

    stateEvaluationContext.collect("test", event);
    Map<String, GenericEvent> events = stateEvaluationContext.getEvents();
    Assert.assertNotNull(events);
    Assert.assertNotEquals(0, events.size());
    Assert.assertEquals(event, events.get("test"));
}