@Test
public void testFindCurrentByService() {

  List<AlertCurrentEntity> currentAlerts = m_dao.findCurrent();
  int currentAlertExpectedCount = currentAlerts.size();
  assertEquals(5, currentAlertExpectedCount);
  AlertCurrentEntity current = currentAlerts.get(0);
  AlertHistoryEntity history = current.getAlertHistory();
  assertNotNull(history);
  currentAlerts = m_dao.findCurrentByService(m_cluster.getClusterId(),
      history.getServiceName());
  assertNotNull(currentAlerts);
  assertEquals(currentAlertExpectedCount, currentAlerts.size());
  currentAlerts = m_dao.findCurrentByService(m_cluster.getClusterId(), "foo");
  assertNotNull(currentAlerts);
  assertEquals(0, currentAlerts.size());
}