public function testGetListenersOnLazyLoad() {
$event = new Event();
$service = $this
->getMock('Symfony\\Component\\EventDispatcher\\Tests\\Service');
$container = new Container();
$container
->set('service.listener', $service);
$dispatcher = new ContainerAwareEventDispatcher($container);
$dispatcher
->addListenerService('onEvent', array(
'service.listener',
'onEvent',
));
$listeners = $dispatcher
->getListeners();
$this
->assertTrue(isset($listeners['onEvent']));
$this
->assertCount(1, $dispatcher
->getListeners('onEvent'));
}