AbstractMBeanServerExecutor implements MBeanServerExecutor, NotificationListener { protected MBeanServerConnection getJolokiaMBeanServer() { return null; }  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 jolokiaServer() throws MalformedObjectNameException, NotCompliantMBeanException, InstanceAlreadyExistsException, MBeanRegistrationException { assertNotNull(executor.getJolokiaMBeanServer()); AbstractMBeanServerExecutor executorNull = new AbstractMBeanServerExecutor() { @Override protected Set<MBeanServerConnection> getMBeanServers() { return null; } }; assertNull(executorNull.getJolokiaMBeanServer()); }