Author: Hugo Briand (briand@ekino.com)
Inheritance: implements Sonata\Component\Currency\CurrencyPriceCalculatorInterface
 public function testGetPrice()
 {
     $currencyPriceCalculator = new CurrencyPriceCalculator();
     $product = $this->getMock('Sonata\\Component\\Product\\ProductInterface');
     $currency = new Currency();
     $currency->setLabel('EUR');
     $product->expects($this->once())->method('getPrice')->will($this->returnValue(42.0));
     $this->assertEquals(42.0, $currencyPriceCalculator->getPrice($product, $currency));
 }