/**
* @covers ::add()
* @covers ::has()
* @covers ::get()
* @covers ::all()
*/
public function testAddClass()
{
$definition = new Definition('person', '\\Lemon\\RestBundle\\Tests\\Fixtures\\Person');
$registry = new Registry();
$registry->add($definition);
$this->assertTrue($registry->has('person'));
$this->assertEquals('\\Lemon\\RestBundle\\Tests\\Fixtures\\Person', $registry->get('person')->getClass());
$this->assertEquals(array('person' => $definition), $registry->all());
}