public function testCollect() {
$c = new EventDataCollector();
$c
->setEventDispatcher(new TestEventDispatcher());
$c
->collect(new Request(), new Response());
$this
->assertSame('events', $c
->getName());
$this
->assertSame(array(
'foo',
), $c
->getCalledListeners());
$this
->assertSame(array(
'bar',
), $c
->getNotCalledListeners());
}