public void notifiesObserversListeningForAppDeployedEventsWhenAppDeployedEventEmitted()
{
Class<? extends Event> listenForEvent = AppDeployedEvent.class;
Event theEvent = new AppDeployedEvent();
ObserverList observers = new ObserverList();
Node node = mock(Node.class);
EventObserver eventObserver = mock(EventObserver.class);
observers.add(listenForEvent, eventObserver);
observers.eventEmitted( theEvent, node);
verify(eventObserver).onEventEmitted(theEvent, node);
}