Fix JmxManagementTest

Fixes an assert in JmxManagementTest.

Please integrate in master