Changing HashMap to TreeMap in test so ordering of keys is predictable.
Disabling a test in Java 5 because it relies on platform support for MXBeans.