why not do:
```ruby
expect { create_es_mappings }.to raise_error(MergeMappingException)
```?