This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new 86acb78fb0 Remove deprecated Jolokia register-management-endpoint
config option
86acb78fb0 is described below
commit 86acb78fb0e255d000016944eeea87dfec564c2a
Author: James Netherton <[email protected]>
AuthorDate: Mon Mar 9 12:58:10 2026 +0000
Remove deprecated Jolokia register-management-endpoint config option
Fixes #8400
---
.../modules/ROOT/pages/migration-guide/3.33.0.adoc | 11 +++++
docs/modules/ROOT/pages/migration-guide/index.adoc | 1 +
.../ROOT/pages/reference/extensions/jolokia.adoc | 13 ------
.../jolokia/deployment/JolokiaProcessor.java | 37 ----------------
.../jolokia/JolokiaCustomContextPathTest.java | 8 ----
.../camel/quarkus/jolokia/JolokiaEnabledTest.java | 25 +++--------
.../JolokiaManagementEndpointDisabledTest.java | 36 ----------------
.../camel/quarkus/jolokia/JolokiaRecorder.java | 49 ----------------------
.../jolokia/JolokiaRequestRedirectHandler.java | 44 -------------------
.../jolokia/config/JolokiaBuildTimeConfig.java | 14 -------
.../src/main/resources/application.properties | 1 -
.../quarkus/component/jolokia/it/JolokiaTest.java | 13 ++----
12 files changed, 21 insertions(+), 231 deletions(-)
diff --git a/docs/modules/ROOT/pages/migration-guide/3.33.0.adoc
b/docs/modules/ROOT/pages/migration-guide/3.33.0.adoc
new file mode 100644
index 0000000000..599ec7716b
--- /dev/null
+++ b/docs/modules/ROOT/pages/migration-guide/3.33.0.adoc
@@ -0,0 +1,11 @@
+= Camel Quarkus 3.33.0 Migration Guide
+
+The following guide outlines how to adapt your code to changes that were made
in Camel Quarkus 3.33.0.
+
+== `camel-quarkus-jolokia` `register-management-endpoint` removed
+
+The deprecated `quarkus.camel.jolokia.register-management-endpoint`
configuration option has been removed.
+
+If you were using this option to enable the `/q/jolokia` Quarkus management
endpoint, you should now access Jolokia directly via its default endpoint at
`http://localhost:8778/jolokia` or configure the endpoint using the available
runtime configuration options.
+
+For more information, see the xref:reference/extensions/jolokia.adoc[Jolokia
extension documentation].
diff --git a/docs/modules/ROOT/pages/migration-guide/index.adoc
b/docs/modules/ROOT/pages/migration-guide/index.adoc
index dddeb3e8db..ef595e2cb6 100644
--- a/docs/modules/ROOT/pages/migration-guide/index.adoc
+++ b/docs/modules/ROOT/pages/migration-guide/index.adoc
@@ -4,6 +4,7 @@ We do frequent releases, a release almost every month, and even
though we strive
Listed here are guides on how to migrate between major versions and anything
of significance to watch for when upgrading from minor versions.
+* xref:migration-guide/3.33.0.adoc[Camel Quarkus 3.32.x to Camel Quarkus
3.33.0 migration guide]
* xref:migration-guide/3.31.0.adoc[Camel Quarkus 3.30.x to Camel Quarkus
3.31.0 migration guide]
* xref:migration-guide/3.27.0.adoc[Camel Quarkus 3.26.x to Camel Quarkus
3.27.0 migration guide]
* xref:migration-guide/3.26.0.adoc[Camel Quarkus 3.25.x to Camel Quarkus
3.26.0 migration guide]
diff --git a/docs/modules/ROOT/pages/reference/extensions/jolokia.adoc
b/docs/modules/ROOT/pages/reference/extensions/jolokia.adoc
index 256059d0ce..b39c8db3ec 100644
--- a/docs/modules/ROOT/pages/reference/extensions/jolokia.adoc
+++ b/docs/modules/ROOT/pages/reference/extensions/jolokia.adoc
@@ -271,19 +271,6 @@ following MBean domains.
Note that this option has no effect if
`quarkus.camel.jolokia.additional-properties."restrictorClass"` is set.
| `boolean`
| `true`
-
-a|icon:lock[title=Fixed at build time]
[[quarkus-camel-jolokia-register-management-endpoint]]`link:#quarkus-camel-jolokia-register-management-endpoint[quarkus.camel.jolokia.register-management-endpoint]`
-
-Whether to register a Quarkus management endpoint for Jolokia (default
`/q/jolokia`).
-When enabled this activates a management endpoint which will be accessible on
a path relative to
-`${quarkus.http.non-application-root-path}/${quarkus.camel.jolokia.server.path}`.
-If the management interface is enabled, the value will be resolved as a path
relative to
-`${quarkus.management.root-path}/${quarkus.camel.jolokia.server.path}`. Note
that for this feature to work you must
-have `quarkus-vertx-http` on the application classpath.
-
-**This option is deprecated and will be removed in a future release**.
-| `boolean`
-| `false`
|===
[.configuration-legend]
diff --git
a/extensions/jolokia/deployment/src/main/java/org/apache/camel/quarkus/jolokia/deployment/JolokiaProcessor.java
b/extensions/jolokia/deployment/src/main/java/org/apache/camel/quarkus/jolokia/deployment/JolokiaProcessor.java
index beb237bee0..79e5a0285a 100644
---
a/extensions/jolokia/deployment/src/main/java/org/apache/camel/quarkus/jolokia/deployment/JolokiaProcessor.java
+++
b/extensions/jolokia/deployment/src/main/java/org/apache/camel/quarkus/jolokia/deployment/JolokiaProcessor.java
@@ -24,8 +24,6 @@ import java.util.function.BooleanSupplier;
import java.util.stream.Collectors;
import io.quarkus.arc.deployment.SyntheticBeanBuildItem;
-import io.quarkus.deployment.Capabilities;
-import io.quarkus.deployment.Capability;
import io.quarkus.deployment.IsDevelopment;
import io.quarkus.deployment.IsProduction;
import io.quarkus.deployment.annotations.BuildProducer;
@@ -53,9 +51,6 @@ import io.quarkus.paths.PathFilter;
import io.quarkus.paths.PathVisit;
import io.quarkus.paths.PathVisitor;
import io.quarkus.runtime.LaunchMode;
-import io.quarkus.vertx.http.deployment.BodyHandlerBuildItem;
-import io.quarkus.vertx.http.deployment.NonApplicationRootPathBuildItem;
-import io.quarkus.vertx.http.deployment.RouteBuildItem;
import jakarta.enterprise.context.ApplicationScoped;
import org.apache.camel.quarkus.jolokia.CamelQuarkusJolokiaServer;
import org.apache.camel.quarkus.jolokia.JolokiaRecorder;
@@ -135,29 +130,6 @@ public class JolokiaProcessor {
return new ShutdownListenerBuildItem(new
DevModeJolokiaServerShutdownListener());
}
- @BuildStep(onlyIf = JolokiaManagementEndpointEnabled.class)
- @Record(ExecutionTime.RUNTIME_INIT)
- void createManagementRoute(
- JolokiaServerConfigBuildItem jolokiaServerConfig,
- NonApplicationRootPathBuildItem nonApplicationRootPathBuildItem,
- BodyHandlerBuildItem bodyHandler,
- Capabilities capabilities,
- BuildProducer<RouteBuildItem> routes,
- JolokiaBuildTimeConfig buildTimeConfig,
- JolokiaRecorder recorder) {
-
- if (capabilities.isPresent(Capability.VERTX_HTTP)) {
- recorder.warnOnDeprecatedRegisterManagementEndpoint();
-
- String jolokiaEndpointPath =
nonApplicationRootPathBuildItem.resolvePath(buildTimeConfig.path());
- routes.produce(nonApplicationRootPathBuildItem.routeBuilder()
- .management()
- .routeFunction(buildTimeConfig.path() + "/*",
recorder.route(bodyHandler.getHandler()))
-
.handler(recorder.getHandler(jolokiaServerConfig.getRuntimeValue(),
jolokiaEndpointPath))
- .build());
- }
- }
-
@BuildStep(onlyIf = { IsProduction.class, ExposeContainerPortEnabled.class
})
KubernetesPortBuildItem configureJolokiaKubernetesPort() {
return KubernetesPortBuildItem.fromRuntimeConfiguration("jolokia",
"quarkus.camel.jolokia.server.port", 8778, true);
@@ -281,15 +253,6 @@ public class JolokiaProcessor {
}
}
- static final class JolokiaManagementEndpointEnabled implements
BooleanSupplier {
- JolokiaBuildTimeConfig config;
-
- @Override
- public boolean getAsBoolean() {
- return config.registerManagementEndpoint();
- }
- }
-
static final class ExposeContainerPortEnabled implements BooleanSupplier {
JolokiaBuildTimeConfig config;
diff --git
a/extensions/jolokia/deployment/src/test/java/org/apache/camel/quarkus/jolokia/JolokiaCustomContextPathTest.java
b/extensions/jolokia/deployment/src/test/java/org/apache/camel/quarkus/jolokia/JolokiaCustomContextPathTest.java
index fd3f01c7eb..eef3294766 100644
---
a/extensions/jolokia/deployment/src/test/java/org/apache/camel/quarkus/jolokia/JolokiaCustomContextPathTest.java
+++
b/extensions/jolokia/deployment/src/test/java/org/apache/camel/quarkus/jolokia/JolokiaCustomContextPathTest.java
@@ -25,7 +25,6 @@ class JolokiaCustomContextPathTest {
@RegisterExtension
static final QuarkusUnitTest CONFIG = new QuarkusUnitTest()
.withEmptyApplication()
-
.overrideConfigKey("quarkus.camel.jolokia.register-management-endpoint", "true")
.overrideConfigKey("quarkus.camel.jolokia.path", "test");
@Test
@@ -35,11 +34,4 @@ class JolokiaCustomContextPathTest {
.then()
.statusCode(200);
}
-
- @Test
- void managementEndpointContextPathAccessible() {
- RestAssured.get("/q/test")
- .then()
- .statusCode(200);
- }
}
diff --git
a/extensions/jolokia/deployment/src/test/java/org/apache/camel/quarkus/jolokia/JolokiaEnabledTest.java
b/extensions/jolokia/deployment/src/test/java/org/apache/camel/quarkus/jolokia/JolokiaEnabledTest.java
index 90031ef464..aadb5f711c 100644
---
a/extensions/jolokia/deployment/src/test/java/org/apache/camel/quarkus/jolokia/JolokiaEnabledTest.java
+++
b/extensions/jolokia/deployment/src/test/java/org/apache/camel/quarkus/jolokia/JolokiaEnabledTest.java
@@ -19,7 +19,6 @@ package org.apache.camel.quarkus.jolokia;
import io.quarkus.test.QuarkusUnitTest;
import io.restassured.RestAssured;
import io.restassured.http.ContentType;
-import io.restassured.response.Response;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import org.apache.camel.ConsumerTemplate;
@@ -32,12 +31,10 @@ import org.junit.jupiter.api.extension.RegisterExtension;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.greaterThan;
import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.fail;
class JolokiaEnabledTest {
@RegisterExtension
static final QuarkusUnitTest CONFIG = new QuarkusUnitTest()
-
.overrideConfigKey("quarkus.camel.jolokia.register-management-endpoint", "true")
.setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class)
.addClass(Routes.class));
@@ -58,24 +55,14 @@ class JolokiaEnabledTest {
@Test
void sendMessageToRoute() {
String jolokiaPayload =
"{\"type\":\"exec\",\"mbean\":\"org.apache.camel:context=camel-1,type=context,name=\\\"camel-1\\\"\",\"operation\":\"sendStringBody(java.lang.String,
java.lang.String)\",\"arguments\":[\"direct://start\",\"Hello World\"]}";
- Response response = RestAssured.given()
+ RestAssured.port = 8778;
+ RestAssured.given()
.contentType(ContentType.JSON)
.body(jolokiaPayload)
- // Test the Quarkus management endpoint returns a redirect to
the Jolokia server
- .post("/q/jolokia/");
-
- if (response.statusCode() == 301) {
- String newUrl = response.getHeader("Location");
-
- RestAssured.given()
- .body(jolokiaPayload)
- .post(newUrl)
- .then()
- .statusCode(200)
- .body("status", equalTo(200));
- } else {
- fail("Unexpected status code: " + response.statusCode());
- }
+ .post("/jolokia/")
+ .then()
+ .statusCode(200)
+ .body("status", equalTo(200));
String message = consumerTemplate.receiveBody("seda:end", 10000,
String.class);
assertEquals("Hello World", message);
diff --git
a/extensions/jolokia/deployment/src/test/java/org/apache/camel/quarkus/jolokia/JolokiaManagementEndpointDisabledTest.java
b/extensions/jolokia/deployment/src/test/java/org/apache/camel/quarkus/jolokia/JolokiaManagementEndpointDisabledTest.java
deleted file mode 100644
index 983354f211..0000000000
---
a/extensions/jolokia/deployment/src/test/java/org/apache/camel/quarkus/jolokia/JolokiaManagementEndpointDisabledTest.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.quarkus.jolokia;
-
-import io.quarkus.test.QuarkusUnitTest;
-import io.restassured.RestAssured;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.RegisterExtension;
-
-class JolokiaManagementEndpointDisabledTest {
- @RegisterExtension
- static final QuarkusUnitTest CONFIG = new QuarkusUnitTest()
- .withEmptyApplication()
-
.overrideConfigKey("quarkus.camel.jolokia.register-management-endpoint",
"false");
-
- @Test
- void managementEndpointUnreachable() {
- RestAssured.get("/q/jolokia")
- .then()
- .statusCode(404);
- }
-}
diff --git
a/extensions/jolokia/runtime/src/main/java/org/apache/camel/quarkus/jolokia/JolokiaRecorder.java
b/extensions/jolokia/runtime/src/main/java/org/apache/camel/quarkus/jolokia/JolokiaRecorder.java
index 5f8a25a2aa..56e08e980c 100644
---
a/extensions/jolokia/runtime/src/main/java/org/apache/camel/quarkus/jolokia/JolokiaRecorder.java
+++
b/extensions/jolokia/runtime/src/main/java/org/apache/camel/quarkus/jolokia/JolokiaRecorder.java
@@ -17,21 +17,14 @@
package org.apache.camel.quarkus.jolokia;
import java.io.IOException;
-import java.net.InetAddress;
-import java.net.URI;
-import java.net.UnknownHostException;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
-import java.util.function.Consumer;
import io.quarkus.runtime.LaunchMode;
import io.quarkus.runtime.RuntimeValue;
import io.quarkus.runtime.ShutdownContext;
import io.quarkus.runtime.annotations.Recorder;
-import io.vertx.core.Handler;
-import io.vertx.ext.web.Route;
-import io.vertx.ext.web.RoutingContext;
import org.apache.camel.quarkus.jolokia.config.JolokiaBuildTimeConfig;
import org.apache.camel.quarkus.jolokia.config.JolokiaRuntimeConfig;
import
org.apache.camel.quarkus.jolokia.config.JolokiaRuntimeConfig.DiscoveryEnabledMode;
@@ -39,7 +32,6 @@ import
org.apache.camel.quarkus.jolokia.config.JolokiaRuntimeConfig.Kubernetes;
import org.apache.camel.quarkus.jolokia.config.JolokiaRuntimeConfig.Server;
import org.apache.camel.quarkus.jolokia.restrictor.CamelJolokiaRestrictor;
import org.apache.camel.util.CollectionHelper;
-import org.apache.camel.util.HostUtils;
import org.apache.camel.util.ObjectHelper;
import org.eclipse.microprofile.config.ConfigProvider;
import org.jboss.logging.Logger;
@@ -64,15 +56,6 @@ public class JolokiaRecorder {
this.runtimeConfig = runtimeConfig;
}
- public Consumer<Route> route(Handler<RoutingContext> bodyHandler) {
- return new Consumer<Route>() {
- @Override
- public void accept(Route route) {
- route.handler(bodyHandler).produces("application/json");
- }
- };
- }
-
public RuntimeValue<JolokiaServerConfig> createJolokiaServerConfig(String
applicationName) {
Server server = runtimeConfig.getValue().server();
@@ -178,36 +161,4 @@ public class JolokiaRecorder {
super(config, logHandler);
}
}
-
- public Handler<RoutingContext>
getHandler(RuntimeValue<JolokiaServerConfig> config, String
jolokiaEndpointPath) {
- JolokiaServerConfig serverConfig = config.getValue();
- String host = resolveHost(serverConfig.getAddress());
- URI uri =
URI.create("%s://%s:%d%s".formatted(serverConfig.getProtocol(), host,
serverConfig.getPort(),
- serverConfig.getContextPath()));
- return new JolokiaRequestRedirectHandler(uri.normalize(),
jolokiaEndpointPath);
- }
-
- public void warnOnDeprecatedRegisterManagementEndpoint() {
- LOG.warn("quarkus.camel.jolokia.register-management-endpoint is
deprecated and will be removed in a future release");
- }
-
- static String resolveHost(InetAddress address) {
- String host;
- if (address == null) {
- try {
- host = HostUtils.getLocalHostName();
- } catch (UnknownHostException e) {
- throw new IllegalStateException("Unable to determine the
Jolokia host", e);
- }
- } else {
- host = address.getHostName();
- }
-
- // ipv6 address
- if (host.contains(":")) {
- host = "[%s]".formatted(host);
- }
-
- return host;
- }
}
diff --git
a/extensions/jolokia/runtime/src/main/java/org/apache/camel/quarkus/jolokia/JolokiaRequestRedirectHandler.java
b/extensions/jolokia/runtime/src/main/java/org/apache/camel/quarkus/jolokia/JolokiaRequestRedirectHandler.java
deleted file mode 100644
index 69b1cc496b..0000000000
---
a/extensions/jolokia/runtime/src/main/java/org/apache/camel/quarkus/jolokia/JolokiaRequestRedirectHandler.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.quarkus.jolokia;
-
-import java.net.URI;
-
-import io.vertx.core.Handler;
-import io.vertx.ext.web.RoutingContext;
-
-/**
- * Vert.x route to redirect from /q/jolokia to the Jolokia embedded HTTP
server endpoint
- */
-final class JolokiaRequestRedirectHandler implements Handler<RoutingContext> {
- private final String jolokiaAgentBaseUrl;
- private final String jolokiaManagementEndpointPath;
-
- public JolokiaRequestRedirectHandler(URI jolokiaAgentBaseUrl, String
jolokiaManagementEndpointPath) {
- this.jolokiaManagementEndpointPath = jolokiaManagementEndpointPath;
- this.jolokiaAgentBaseUrl = jolokiaAgentBaseUrl.toString();
- }
-
- @Override
- public void handle(RoutingContext routingContext) {
- String uri = routingContext.request().uri();
- routingContext.response()
- .setStatusCode(301)
- .putHeader("Location", jolokiaAgentBaseUrl +
uri.replace(jolokiaManagementEndpointPath, ""))
- .end();
- }
-}
diff --git
a/extensions/jolokia/runtime/src/main/java/org/apache/camel/quarkus/jolokia/config/JolokiaBuildTimeConfig.java
b/extensions/jolokia/runtime/src/main/java/org/apache/camel/quarkus/jolokia/config/JolokiaBuildTimeConfig.java
index 6100d51433..356a96ab46 100644
---
a/extensions/jolokia/runtime/src/main/java/org/apache/camel/quarkus/jolokia/config/JolokiaBuildTimeConfig.java
+++
b/extensions/jolokia/runtime/src/main/java/org/apache/camel/quarkus/jolokia/config/JolokiaBuildTimeConfig.java
@@ -38,20 +38,6 @@ public interface JolokiaBuildTimeConfig {
@WithDefault("jolokia")
String path();
- /**
- * Whether to register a Quarkus management endpoint for Jolokia (default
`/q/jolokia`).
- * When enabled this activates a management endpoint which will be
accessible on a path relative to
- *
`${quarkus.http.non-application-root-path}/${quarkus.camel.jolokia.server.path}`.
- * If the management interface is enabled, the value will be resolved as a
path relative to
- * `${quarkus.management.root-path}/${quarkus.camel.jolokia.server.path}`.
Note that for this feature to work you must
- * have `quarkus-vertx-http` on the application classpath.
- *
- * **This option is deprecated and will be removed in a future release**.
- */
- @Deprecated(forRemoval = true)
- @WithDefault("false")
- boolean registerManagementEndpoint();
-
/**
* Comma separated list of allowed MBean domains used by
`CamelJolokiaRestrictor`.
*/
diff --git
a/integration-tests/jolokia/src/main/resources/application.properties
b/integration-tests/jolokia/src/main/resources/application.properties
index 5a8b28d808..6c0534afa0 100644
--- a/integration-tests/jolokia/src/main/resources/application.properties
+++ b/integration-tests/jolokia/src/main/resources/application.properties
@@ -17,4 +17,3 @@
# Enable in all modes since native testing runs against prod mode and this
simplifies test assertions
quarkus.camel.jolokia.server.discovery-enabled-mode=all
-quarkus.camel.jolokia.register-management-endpoint=true
diff --git
a/integration-tests/jolokia/src/test/java/org/apache/camel/quarkus/component/jolokia/it/JolokiaTest.java
b/integration-tests/jolokia/src/test/java/org/apache/camel/quarkus/component/jolokia/it/JolokiaTest.java
index 718f352ec0..45a618e88b 100644
---
a/integration-tests/jolokia/src/test/java/org/apache/camel/quarkus/component/jolokia/it/JolokiaTest.java
+++
b/integration-tests/jolokia/src/test/java/org/apache/camel/quarkus/component/jolokia/it/JolokiaTest.java
@@ -24,8 +24,6 @@ import
org.apache.camel.quarkus.jolokia.restrictor.CamelJolokiaRestrictor;
import org.eclipse.microprofile.config.ConfigProvider;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
-import org.junit.jupiter.params.ParameterizedTest;
-import org.junit.jupiter.params.provider.ValueSource;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
@@ -39,15 +37,10 @@ class JolokiaTest {
RestAssured.port = 8778;
}
- @ParameterizedTest
- @ValueSource(strings = { "/jolokia/", "/q/jolokia" })
- void defaultConfiguration(String path) {
- if (path.startsWith("/q")) {
- RestAssured.port =
ConfigProvider.getConfig().getValue("quarkus.http.test-port", Integer.class);
- }
-
+ @Test
+ void defaultConfiguration() {
RestAssured.given()
- .get(path)
+ .get("/jolokia/")
.then()
.statusCode(200)
.body(