@Test
public void testFindCurrentByHostAndName() throws Exception {

  AlertCurrentEntity entity = m_dao.findCurrentByHostAndName(
      m_cluster.getClusterId(), "h2", "Alert Definition 1");
  assertNull(entity);
  entity = m_dao.findCurrentByHostAndName(m_cluster.getClusterId(), "h1",
      "Alert Definition 1");
  assertNotNull(entity);
  assertNotNull(entity.getAlertHistory());
  assertNotNull(entity.getAlertHistory().getAlertDefinition());
}