@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());
}