ServiceAlert serviceAlert4 = addServiceAlertWithTimeRange(
agencyId,
createTimeRange(System.currentTimeMillis() - (60 * 60 * 1000),
System.currentTimeMillis() + (60 * 60 * 1000)));
SituationQueryBean query = new SituationQueryBean();
// query.setAgencyId(agencyId);
List<AffectsBean> affects = new ArrayList<AffectsBean>();
AffectsBean e = new AffectsBean();
e.setAgencyId(agencyId);
affects.add(e);
query.setAffects(affects);
// Time is not supported by SituationQueryBean anymore
// query.setTime(System.currentTimeMillis());
List<ServiceAlert> alerts = _service.getServiceAlerts(query);
assertEquals(2, alerts.size());