public function its_getTopicByIdAction_should_throw_NotFoundHttpException_when_no_result($request, $topicRepository, $query)
{
$topicRepository->getSingleTopicQuery(1)->willReturn($query);
$query->getOneOrNullResult()->willReturn(null);
$this->shouldThrow('Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException')->during('getTopicByIdAction', array(1));
}