private void installHdfsService() throws Exception {
    RepositoryVersionEntity repositoryVersion = ormHelper.getOrCreateRepositoryVersion(
        cluster.getCurrentStackVersion(), REPO_VERSION);

    String serviceName = "HDFS";
    serviceFactory.createNew(cluster, serviceName, repositoryVersion);
    Assert.assertNotNull(cluster.getService(serviceName));
  }
Tests that {@link AlertDefinitionDeleteEvent} instances are fired when a
definition is removed.

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