public function testFindOneByLabel()
{
$registry = $this->getMock('Doctrine\\Common\\Persistence\\ManagerRegistry');
$currencyManager = new CurrencyManager('Sonata\\Component\\Currency\\Currency', $registry);
$this->assertEquals('EUR', $currencyManager->findOneByLabel('EUR')->getLabel());
}