AbstractMBeanServerExecutor implements MBeanServerExecutor, NotificationListener { public <T> T call(ObjectName pObjectName, MBeanAction<T> pMBeanAction, Object ... pExtraArgs) throws IOException, ReflectionException, MBeanException, AttributeNotFoundException, InstanceNotFoundException { InstanceNotFoundException objNotFoundException = null; for (MBeanServerConnection server : getMBeanServers()) { try { return pMBeanAction.execute(server, pObjectName, pExtraArgs); } catch (InstanceNotFoundException exp) { objNotFoundException = exp; } } throw objNotFoundException; }  void each(ObjectName pObjectName, MBeanEachCallback pCallback); T call(ObjectName pObjectName, MBeanAction<T> pMBeanAction, Object ... pExtraArgs); Set<ObjectName> queryNames(ObjectName pObjectName); void unregisterFromMBeanNotifications(); void handleNotification(Notification pNotification, Object pHandback); boolean hasMBeansListChangedSince(long pTimestamp);  }
@Test public void call() throws MalformedObjectNameException, MBeanException, InstanceAlreadyExistsException, NotCompliantMBeanException, IOException, ReflectionException, AttributeNotFoundException, InstanceNotFoundException { String name = getAttribute(executor,"test:type=one","Name"); assertEquals(name,"jolokia"); }