public int getAlertEventReceivedCount(Class<? extends AlertEvent> clazz) {
    if (!m_receivedAlertEvents.containsKey(clazz)) {
      return 0;
    }

    return m_receivedAlertEvents.get(clazz).size();
  }
Gets the total number of events received for the specified class.

@param clazz
@return
ambari-server/src/test/java/org/apache/ambari/server/events/MockEventListener.java