public function testGenerateUrlCheck()
{
$payment = new BasePaymentTest_Payment();
$payment->setOptions(array('shop_secret_key' => 's3cr3t k2y'));
$date = new \DateTime();
$date->setTimestamp(strtotime('11/30/1981'));
$order = $this->getMock('Sonata\\Component\\Order\\OrderInterface');
$order->expects($this->once())->method('getReference')->will($this->returnValue('000123'));
$order->expects($this->exactly(2))->method('getCreatedAt')->will($this->returnValue($date));
$order->expects($this->once())->method('getId')->will($this->returnValue(2));
$this->assertEquals('2a084bbe95bb3842813499d4b5b1bfdf82e5a980', $payment->generateUrlCheck($order));
}