@Test
public void testGetEventHandlers() {

    EventHandler eventHandler = new EventHandler();
    eventResource.addEventHandler(eventHandler);
    List<EventHandler> listOfEventHandler = new ArrayList<>();
    listOfEventHandler.add(eventHandler);
    when(mockEventService.getEventHandlers()).thenReturn(listOfEventHandler);
    assertEquals(listOfEventHandler, eventResource.getEventHandlers());
}