{
ClassLoaderSystem system = createClassLoaderSystemWithModifiedBootstrap();
MockClassLoaderPolicy policy = createMockClassLoaderPolicy("simple");
policy.setPathsAndPackageNames(Simple.class);
RealClassLoader cl = (RealClassLoader) system.registerClassLoaderPolicy(policy);
MBeanServer server = MBeanServerFactory.newMBeanServer();
ObjectName clName = cl.getObjectName();
server.registerMBean(cl, clName);
getLog().debug("Registered classloader " + cl + " with name " + clName);
ObjectName name = new ObjectName("test:test=simple");
server.createMBean(Simple.class.getName(), name, clName);