public function testGenerateDraw2()
 {
     $inscriptions = [$this->inscription1, $this->inscription2];
     $categoryService = new CategoryService();
     $categoryService->setManager($this->em);
     $category = $this->category->getId();
     $tournament = $this->tournament->getId();
     $this->games = $categoryService->generateDraw($inscriptions, 1, $category, $tournament);
     $this->assertContains('' . $this->pair1->getId(), json_encode($this->games));
     $this->assertContains('' . $this->pair2->getId(), json_encode($this->games));
     foreach ($this->games as $game) {
         $this->em->remove($game);
     }
     if (count($this->games) > 0) {
         $this->em->flush();
     }
 }