public ResourceProviderEvent getLastEvent() {
      return lastEvent;
    }
A test observer that records the last event.
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AbstractResourceProviderTest.java