/**
  * undocumented function
  * @expectedException SuperSimple\ORM\Exception\OrmException
  * @return void
  **/
 public function testExceptionThrownForUnknownRepository()
 {
     // init factory
     $factory = new Factory($this->dsn);
     // call repo
     $repo = $factory->fetch('SuperSimple\\ORM\\Tests\\Lib:FakeRepo');
 }
 /**
  * test save
  * @return void
  **/
 public function testSave()
 {
     // init factory
     $factory = new Factory($this->dsn);
     // call repo
     $repo = $factory->fetch('SuperSimple\\ORM\\Tests\\Lib:Cd');
     $cd = new Cd();
     $cd->setSlug('test-cd-3')->setName('Test CD 3');
     $id = $repo->persist($cd);
     // fetch the new object
     $new = $repo->find($id);
     $this->assertInstanceOf('SuperSimple\\ORM\\Tests\\Lib\\Entity\\Cd', $new);
     $this->assertEquals($new->getName(), $cd->getName());
     $this->assertEquals($new->getSlug(), $cd->getSlug());
 }