ObjectName derivedName = new ObjectName("MBeanServerTEST:type=testIsInstanceOf,name=Derived");
ObjectName unrelatedName = new ObjectName("MBeanServerTEST:type=testIsInstanceOf,name=Unrelated");
server.registerMBean(new Base(), baseName);
server.registerMBean(new Derived(), derivedName);
server.registerMBean(new Unrelated(), unrelatedName);
assertTrue("Base is an instance Object",
server.isInstanceOf(baseName, Object.class.getName()));
assertTrue("Base is an instance BaseMBean",
server.isInstanceOf(baseName, BaseMBean.class.getName()));