@Override
  public List<EventExecution> getEventExecutions(String event) {
    return withMetricLogError(
        () ->
            getPayloads(
                GET_EVENT_EXECUTIONS_STATEMENT,
                statement -> statement.setString(1, event),
                EventExecution.class),
        "getEventExecutions",
        "Failed getting event executions with event {}",
        event);
  }
@Test
  public void getEventExecutionsTest() {
    String event = "event";
    EventExecution execution1 = createEventExecution(event);
    EventExecution execution2 = createEventExecution(event);

    executionDAO.addEventExecution(execution1);
    executionDAO.addEventExecution(execution2);

    List<EventExecution> indexedExecutions = tryFindResults(() -> dao.getEventExecutions(event), 2);

    assertEquals(2, indexedExecutions.size());

    assertTrue(
        "Not all event executions was indexed",
        indexedExecutions.containsAll(Arrays.asList(execution1, execution2)));
  }