public function testExecute()
{
$application = $this->getApplication();
$application->add(new ListCommand());
$command = $this->getApplication()->find('sys:url:list');
$commandTester = new CommandTester($command);
$commandTester->execute(array('command' => $command->getName(), 'stores' => 0, 'linetemplate' => 'prefix {url} suffix', '--add-categories' => true, '--add-products' => true, '--add-cmspages' => true));
$this->assertRegExp('/prefix/', $commandTester->getDisplay());
$this->assertRegExp('/http/', $commandTester->getDisplay());
$this->assertRegExp('/suffix/', $commandTester->getDisplay());
}