function it_should_create_project(ProjectRepository $projectRepository, EventDispatcherInterface $eventDispatcher, Project $project, CreateProjectAction $action)
 {
     $action->getName()->willReturn('Foo bar');
     $action->getSlug()->willReturn('foobar');
     $action->getDefaultLocale()->willReturn('fr_FR');
     $action->getDescription()->willReturn('');
     $projectRepository->createNew(Argument::exact(new Slug('foobar')))->willReturn($project);
     $projectRepository->save($project)->shouldBeCalled();
     $eventDispatcher->dispatch(CreateProjectEvent::NAME, Argument::type('Openl10n\\Domain\\Project\\Application\\Event\\CreateProjectEvent'))->shouldBeCalled();
     $this->execute($action)->shouldReturn($project);
 }