Seems the following would be a little more declarative:

```ruby
resource_descriptor = registry.register_single(drds_descriptor)
registry.raw_toplevel_registry[esource_descriptor.id].should == resource_descriptor
```