public function testRenderLocationEmbedThrowsException()
{
$renderer = $this->getMockedRenderer(array('checkLocation'));
$locationId = 42;
$renderer->expects($this->once())->method('checkLocation')->with($locationId)->will($this->throwException(new Exception('Something threw up')));
$renderer->renderLocationEmbed($locationId, 'embedTest', array('parameters'), true);
}