public function testFindOneByType()
 {
     $expected = new TypeOne();
     $entities = array($expected, new TypeTwo(), new TypeOne(), new TypeTwo());
     $registry = new Registry();
     $registry->merge($entities);
     $this->assertSame($expected, $registry->findOne(get_class($expected)));
 }