public function testGetCustomerAddressesAction()
{
$customer = $this->getMock('Sonata\\Component\\Customer\\CustomerInterface');
$address = $this->getMock('Sonata\\Component\\Customer\\AddressInterface');
$customer->expects($this->once())->method('getAddresses')->will($this->returnValue(array($address)));
$this->assertEquals(array($address), $this->createCustomerController($customer)->getCustomerAddressesAction(1));
}