@Override
      List<AlertCurrentEntity> execute(AlertsDAO alertsDAO) throws Exception {
        return alertsDAO.findCurrentByCluster(0L);
      }
Tests cached alerts are merged correct with the set from JPA.
ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertsDAOCachedTest.java