There are more [predicate matchers](https://www.relishapp.com/rspec/rspec-expectations/v/2-3/docs/built-in-matchers/predicate-matchers) available in rspec that we can use. So this would become
```ruby
app_server_tags['02-BBCDEFG123457']['applications'].should have_key('www')
```