public function its_getUserTopicsAction_should_throw_exception_when_user_not_found($request, $repository)
{
$userId = 1;
$repository->findOneBy(array('id' => $userId))->shouldBeCalled()->willReturn(null);
$this->shouldThrow('Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException')->during('getUserTopicsAction', array($request, $userId));
}