public function testGetPanelTemplate()
{
$collector = $this->getMock('\\Symfony\\Component\\HttpKernel\\DataCollector\\DataCollectorInterface');
$name = 'foobar';
$collector->expects($this->once())->method('getName')->will($this->returnValue($name));
$panelTemplate = 'toolbar.html.twig';
$this->mainCollector->addCollector($collector, $panelTemplate, 'foo');
$this->assertSame($panelTemplate, $this->mainCollector->getPanelTemplate($name));
}