Refactoring Jolokia test.