fix test compilation error with jmx.