public function testDeleteCustomerInvalidAction()
{
$this->setExpectedException('Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException');
$customerManager = $this->getMock('Sonata\\Component\\Customer\\CustomerManagerInterface');
$customerManager->expects($this->once())->method('findOneBy')->will($this->returnValue(null));
$customerManager->expects($this->never())->method('delete');
$this->createCustomerController(null, $customerManager)->deleteCustomerAction(1);
}