@Test
public void testCreateEventForUnknownType() throws Exception {

    assertThrows(IllegalArgumentException.class,
            () -> eventFactory.createEventByType("unknownType", "topic", "somePayload", "Source"));
}