Fix intermittent failure with JMS unit tests with Oracle JDK7.

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