public function testCGetActionWithUnexistingAlias()
{
$query = ['alias' => 'not_existent_alias'];
$request = new Request($query);
$contentNavigationAliasNotFoundException = new ContentNavigationAliasNotFoundException($query['alias'], []);
$this->contentNavigationCollector->getNavigationItems(Argument::cetera())->willThrow($contentNavigationAliasNotFoundException);
$exception = new RestException($contentNavigationAliasNotFoundException->getMessage(), 0, $contentNavigationAliasNotFoundException);
$this->viewHandler->handle(View::create($exception->toArray(), 404))->shouldBeCalled();
$this->contentNavigationController->cgetAction($request);
}