@Override
      protected void configure() {
        bind(ActionMetadata.class);

        // create a mock metainfo DAO for the entire system so that injectables
        // can use the mock as well
        bind(MetainfoDAO.class).toInstance(createNiceMock(MetainfoDAO.class));
      }
Test scenario when service were removed and not mapped alerts need to be disabled

@throws Exception
ambari-server/src/test/java/org/apache/ambari/server/api/services/AmbariMetaInfoTest.java