@Test
public void testAddEventExecution() {

    when(executionDAO.addEventExecution(any())).thenReturn(false);
    boolean added = executionDAOFacade.addEventExecution(new EventExecution());
    assertFalse(added);
    verify(indexDAO, never()).addEventExecution(any());
    when(executionDAO.addEventExecution(any())).thenReturn(true);
    added = executionDAOFacade.addEventExecution(new EventExecution());
    assertTrue(added);
    verify(indexDAO, times(1)).asyncAddEventExecution(any());
}