Fix tests in JmxCollectorTest class.