public void observersOnlyGetNotifiedForCorrectEvents() throws Exception
{
TestRootNode rootNode = new TestRootNode( new File(TEST_DIR, "brjs-root-node") );
TestNode midNode = new TestNode(rootNode, rootNode, new File(rootNode.dir(), "path" ) );
TestNode lowerNode = new TestNode(rootNode, midNode, new File(midNode.dir(), "to-file" ) );
EventObserver observer = mock(EventObserver.class);
rootNode.addObserver(MyTestEvent.class, observer);
lowerNode.notifyObservers(new MyTestEvent(), lowerNode);
lowerNode.notifyObservers(new AnotherTestEvent(), lowerNode);