It could also be written as so:

```ruby
SimpleDeploy::AWS::CloudFormation.should_receive(:new).never
```