Object mbean1 = server.instantiate(className, null, new Object[0], new String[0]);
// Register one classloader mbean
File file = new File("dist/test/mx4j-tests.jar");
ClassLoader parent = getClass().getClassLoader().getParent();
ClassLoaderSupport loader = new ClassLoaderSupport(new URL[]{file.toURL()}, parent);
ObjectName loaderName = new ObjectName(":type=ClassLoader");
server.registerMBean(loader, loaderName);
Object mbean2 = server.instantiate(className, loaderName, new Object[0], new String[0]);