@Test
  public void testAlertDefinitionInsertion() throws Exception {
    Assert.assertEquals(0, definitionDao.findAll().size());
    installHdfsService();
    Assert.assertEquals(6, definitionDao.findAll().size());
  }
Tests that all {@link AlertDefinitionEntity} instances are created for the
installed service.

@throws Exception
ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertEventPublisherTest.java