MXBean  support

Also MXBean test unit.