public function testCreateExistingRepository()
 {
     $repoName = 'test';
     $rootPath = realpath(__DIR__ . '/../../../../var/data');
     $repoPath = $rootPath . '/' . $repoName;
     $fs = new Filesystem();
     $fs->mkdir($repoPath);
     $repo = \Gitonomy\Git\Admin::init($repoPath, false);
     $this->setExpectedException('\\InvalidArgumentException');
     $repoService = new RepositoryService($rootPath);
     $testRepo = $repoService->createRepository($repoName);
 }
 function __construct(RepositoryService $repositoryService, $adminRepository)
 {
     $this->adminRepository = $repositoryService->getRepository($adminRepository);
     $this->yamlParser = new Parser();
 }