Testing tools for resource delegates.

Preceded by: #588
Followed by: Nothing. Improvements if needed.

I based myself upon what we usually need internally when mocking resources. This should be enough for most use cases.