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