testUnregisterMBean(server);
}
public void testGetClassLoader() throws Exception
{
addPermission(new MBeanServerPermission("newMBeanServer"));
MBeanServer server = MBeanServerFactory.newMBeanServer();
// Needed to create an MLet, which is a ClassLoader
addPermission(new RuntimePermission("createClassLoader"));
ObjectName name = new ObjectName(server.getDefaultDomain(), "mbean", "mlet");