@Test
public void queryAlertsCombined() 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.setStatus(Alert.Status.RESOLVED);
    criteria.setTriggerId("trigger0");
    criteria.setStartTime(3L);
    List<Alert> resolvedAlerts = alerts.getAlerts(tenantIds, criteria, null);
    assertEquals(1, resolvedAlerts.size());
    deleteTestAlerts(numTenants);
}