public function getMockProduct()
{
$product = $this->getMock('Sonata\\Component\\Product\\ProductInterface', array(), array(), 'BasketTest_Product');
$product->expects($this->any())->method('getId')->will($this->returnValue(42));
$product->expects($this->any())->method('getName')->will($this->returnValue('Product name'));
$product->expects($this->any())->method('getPrice')->will($this->returnValue(15));
$product->expects($this->any())->method('isPriceIncludingVat')->will($this->returnValue(false));
$product->expects($this->any())->method('getVatRate')->will($this->returnValue(19.6));
$product->expects($this->any())->method('getOptions')->will($this->returnValue(array('foo' => 'bar')));
$product->expects($this->any())->method('getDescription')->will($this->returnValue('product description'));
$product->expects($this->any())->method('getEnabled')->will($this->returnValue(true));
return $product;
}