public function testRun()
 {
     (new FixturesFromDBGenerator())->generateFixtures($this->em, self::$dir, self::$fullClassNames, 10, 2);
     /** @var  $loader */
     $loader = new Yaml();
     $this->assertEquals(2, (new Finder())->files()->name("Author_*.yml")->in(self::$dir)->count());
     $this->assertEquals(5, (new Finder())->files()->name("Book_*.yml")->in(self::$dir)->count());
     $finder = (new Finder())->files()->name('*.yml')->in(self::$dir);
     foreach ($finder as $file) {
         /** @var SplFileInfo $file */
         $objects = $loader->load($file->getPathname());
         if (count($objects) > 0) {
             $className = get_class($objects[array_keys($objects)[0]]);
             $this->assertTrue(in_array($className, self::$fullClassNames));
             foreach ($objects as $obj) {
                 $id = EntityHelper::getPrimaryKey($this->em, $obj);
                 $this->assertNotNull($this->em->getRepository($className)->find($id));
             }
         }
     }
 }