public function checkCode_backupCodesNotSupported_callDecoratedValidator()
{
$user = $this->createMock('Scheb\\TwoFactorBundle\\Model\\Google\\TwoFactorInterface');
//Expect backup code validator NOT to be called
$this->backupCodeValidator->expects($this->never())->method('checkCode');
//Expect decorated validator to be called
$this->decoratedValidator->expects($this->once())->method('checkCode')->with($user, 'c0de')->willReturn(false);
$returnValue = $this->validator->checkCode($user, 'c0de');
$this->assertFalse($returnValue);
}