public function testNotify()
 {
     $name = 'test.listener';
     $mock = $this->getMock('IMockListener');
     $listener = array($mock, 'testCallback');
     $this->dispatcher->attach($name, $listener);
     $this->assertEquals(array($listener), $this->dispatcher->getListeners($name));
     $e = new Event(null, $name);
     $mock->expects($this->once())->method('testCallback')->with($e);
     $this->dispatcher->notify($e);
 }