Purge the contents of the ResourceRegistry before each test - copied from RecovererTest.