@Test
public void queryAlertsByAcknowledgedTime() throws Exception {

    int numTenants = 1;
    int numTriggers = 5;
    int numAlerts = 5;
    createTestAlerts(numTenants, numTriggers, numAlerts);
    Set<String> tenantIds = new HashSet<>();
    tenantIds.add("tenant0");
    AlertsCriteria criteria = new AlertsCriteria();
    criteria.setStartAckTime(1L);
    // Alerts on stime 2 and 5 are ACKNOWLEDGED
    List<Alert> stimeGTE2Alerts = alerts.getAlerts(tenantIds, criteria, null);
    assertEquals(5 * 2, stimeGTE2Alerts.size());
    deleteTestAlerts(numTenants);
}