Fix intermittent failure with JMS unit tests and Oracle JDK7.

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