public function its_deleteAction_should_return_404_when_topic_not_found($request, $repository)
{
$repository->findOneBy(array('id' => 3))->willReturn(null);
$response = $this->deleteAction($request, 3);
$response->getStatusCode()->shouldReturn(404);
$response->shouldBeAnInstanceOf('Symfony\\Component\\HttpFoundation\\JsonResponse');
}