public function shouldDoNothingIfResponseCodeSet()
{
$api = $this->createAuthorizeNetAIMMock();
$api->expects($this->never())->method('authorizeAndCapture');
$gatewayMock = $this->createGatewayMock();
$gatewayMock->expects($this->never())->method('execute');
$action = new CaptureAction();
$action->setApi($api);
$action->setGateway($gatewayMock);
$action->execute(new Capture(array('response_code' => 'foo')));
}