Unit testing remote access to JMX MBeans