Enhance JRuby support in unit tests.
Correct long hidden test problem with RabbitMQ.