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