public function testGenerateWithoutDependencies()
 {
     $author = new Author();
     $author->setId(2);
     $author->setUsername('Username');
     $models = array($author);
     $fieldNames = array('username');
     $classMetadata = $this->getMock('Doctrine\\Common\\Persistence\\Mapping\\ClassMetadata');
     $classMetadata->expects($this->any())->method('getName')->will($this->returnValue('Sp\\FixtureDumper\\Tests\\Fixture\\Author'));
     $classMetadata->expects($this->any())->method('getFieldNames')->will($this->returnValue($fieldNames));
     $classMetadata->expects($this->any())->method('isSingleValuedAssociation')->will($this->returnValue(true));
     $classMetadata->expects($this->any())->method('getAssociationNames')->will($this->returnValue(array()));
     $classMetadata->expects($this->any())->method('getIdentifierValues')->will($this->returnCallback(function ($model) {
         return array('id' => $model->getId());
     }));
     $this->repository->expects($this->once())->method('findAll')->will($this->returnValue($models));
     $this->manager->expects($this->once())->method('getRepository')->will($this->returnValue($this->repository));
     $output = $this->generator->generate($classMetadata, null, $this->getOptions());
     $this->assertEquals($this->getContent('author_data'), $output);
 }