@Test
public void testShouldHandleEvent() throws Exception {

    EventForTest event = new EventForTest(null);
    AnotherEventForTest unhandledEvent = new AnotherEventForTest(null);
    EventHandlerConfig config = new EventHandlerConfig();
    List<Class<? extends  IMessageProcessingEvent>> list = new ArrayList<>();
    list.add(event.getClass());
    config.setHandledEvents(list);
    assertTrue(EventUtils.shouldHandleEvent(config, event));
    assertFalse(EventUtils.shouldHandleEvent(config, unhandledEvent));
}