This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


The following commit(s) were added to refs/heads/main by this push:
     new dcadfac45 chore: Citrus tests for the Messaging Kamelets that had none 
(#3261) (#3268)
dcadfac45 is described below

commit dcadfac45805c633f590d04e112a4a143bee154c
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Nov 19 16:00:56 2026 +0100

    chore: Citrus tests for the Messaging Kamelets that had none (#3261) (#3268)
    
    Tests for the JMS Kamelets (Apache Artemis and AMQP 1.0 against an
    Artemis container, IBM MQ against an IBM MQ container), spring-rabbitmq,
    pulsar and smpp (against the SMPPSim SMS center), each source and sink
    against a broker in a container. A source test checks the body and the
    documented headers; a sink test checks the message goes on unchanged
    and reads it back from the broker. Each test records the Java type of
    the body and the Content-Type that the Kamelet gives, so the data types
    of #3117 show what they change.
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 .../src/test/java/MessagingIT.java                 | 87 ++++++++++++++++++++
 .../jms/jms-amqp-10-sink-route.citrus.it.yaml      | 79 ++++++++++++++++++
 .../test/resources/jms/jms-amqp-10-sink-route.yaml | 57 +++++++++++++
 .../jms/jms-amqp-10-source-route.citrus.it.yaml    | 80 ++++++++++++++++++
 .../resources/jms/jms-amqp-10-source-route.yaml    | 55 +++++++++++++
 .../jms-apache-artemis-sink-route.citrus.it.yaml   | 79 ++++++++++++++++++
 .../jms/jms-apache-artemis-sink-route.yaml         | 57 +++++++++++++
 .../jms-apache-artemis-source-route.citrus.it.yaml | 80 ++++++++++++++++++
 .../jms/jms-apache-artemis-source-route.yaml       | 55 +++++++++++++
 .../jms/jms-ibm-mq-sink-route.citrus.it.yaml       | 88 ++++++++++++++++++++
 .../test/resources/jms/jms-ibm-mq-sink-route.yaml  | 63 ++++++++++++++
 .../jms/jms-ibm-mq-source-route.citrus.it.yaml     | 95 ++++++++++++++++++++++
 .../resources/jms/jms-ibm-mq-source-route.yaml     | 61 ++++++++++++++
 .../pulsar/pulsar-sink-route.citrus.it.yaml        | 80 ++++++++++++++++++
 .../test/resources/pulsar/pulsar-sink-route.yaml   | 64 +++++++++++++++
 .../pulsar/pulsar-source-route.citrus.it.yaml      | 81 ++++++++++++++++++
 .../test/resources/pulsar/pulsar-source-route.yaml | 68 ++++++++++++++++
 .../spring-rabbitmq-sink-route.citrus.it.yaml      | 86 ++++++++++++++++++++
 .../rabbitmq/spring-rabbitmq-sink-route.yaml       | 65 +++++++++++++++
 .../spring-rabbitmq-source-route.citrus.it.yaml    | 83 +++++++++++++++++++
 .../rabbitmq/spring-rabbitmq-source-route.yaml     | 72 ++++++++++++++++
 .../resources/smpp/smpp-sink-route.citrus.it.yaml  | 86 ++++++++++++++++++++
 .../src/test/resources/smpp/smpp-sink-route.yaml   | 51 ++++++++++++
 .../smpp/smpp-source-route.citrus.it.yaml          | 91 +++++++++++++++++++++
 .../src/test/resources/smpp/smpp-source-route.yaml | 44 ++++++++++
 .../test/resources/smpp/smppsim-inject-mo.groovy   | 40 +++++++++
 .../resources/smpp/smppsim-verify-submit.groovy    | 27 ++++++
 27 files changed, 1874 insertions(+)

diff --git a/tests/camel-kamelets-itest/src/test/java/MessagingIT.java 
b/tests/camel-kamelets-itest/src/test/java/MessagingIT.java
new file mode 100644
index 000000000..9d0c53ed1
--- /dev/null
+++ b/tests/camel-kamelets-itest/src/test/java/MessagingIT.java
@@ -0,0 +1,87 @@
+/*
+ * 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.
+ */
+
+import java.util.stream.Stream;
+
+import org.citrusframework.api.common.TestLoader;
+import org.citrusframework.container.SequenceAfterTest;
+import org.citrusframework.container.SequenceBeforeTest;
+import org.citrusframework.http.server.HttpServer;
+import org.citrusframework.junit.jupiter.CitrusSupport;
+import org.citrusframework.junit.jupiter.CitrusTestFactory;
+import org.citrusframework.junit.jupiter.CitrusTestFactorySupport;
+import org.citrusframework.spi.BindToRegistry;
+import org.citrusframework.util.SocketUtils;
+import org.junit.jupiter.api.DynamicTest;
+
+import static 
org.citrusframework.actions.CreateVariablesAction.Builder.createVariables;
+import static 
org.citrusframework.actions.PurgeEndpointAction.Builder.purgeEndpoints;
+import static org.citrusframework.http.endpoint.builder.HttpEndpoints.http;
+
+/**
+ * Tests of the messaging Kamelets, each against a broker in a container: 
Apache ActiveMQ Artemis (for the
+ * Artemis and the AMQP 1.0 Kamelets), IBM MQ, RabbitMQ, Apache Pulsar and the 
SMPPSim SMS center.
+ */
+@CitrusSupport
+public class MessagingIT {
+
+    private final int httpServerPort = SocketUtils.findAvailableTcpPort();
+
+    // a broker container and a first Camel JBang run that downloads the 
client libraries take a while,
+    // so the server waits longer for the request than in CommonIT
+    @BindToRegistry
+    HttpServer httpServer = http()
+                .server()
+                .port(httpServerPort)
+                .timeout(120000L)
+                .autoStart(true)
+                .build();
+
+    @BindToRegistry
+    public SequenceBeforeTest beforeMessaging() {
+        return new SequenceBeforeTest.Builder().actions(
+                createVariables().variable("http.server.port", 
String.valueOf(httpServerPort))
+        ).build();
+    }
+
+    @BindToRegistry
+    public SequenceAfterTest afterMessaging() {
+        return new SequenceAfterTest.Builder().actions(
+                purgeEndpoints().endpoint(httpServer)
+        ).build();
+    }
+
+    @CitrusTestFactory
+    public Stream<DynamicTest> jms() {
+        return 
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("jms");
+    }
+
+    @CitrusTestFactory
+    public Stream<DynamicTest> rabbitmq() {
+        return 
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("rabbitmq");
+    }
+
+    @CitrusTestFactory
+    public Stream<DynamicTest> pulsar() {
+        return 
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("pulsar");
+    }
+
+    @CitrusTestFactory
+    public Stream<DynamicTest> smpp() {
+        return 
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("smpp");
+    }
+}
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/jms/jms-amqp-10-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-amqp-10-sink-route.citrus.it.yaml
new file mode 100644
index 000000000..3869bb946
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-amqp-10-sink-route.citrus.it.yaml
@@ -0,0 +1,79 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+name: jms-amqp-10-sink-route-test
+description: 'jms-amqp-10-sink sends a text message, with its headers as JMS 
properties, to a queue in Artemis'
+actions:
+  # Start Artemis
+  - testcontainers:
+      start:
+        container:
+          name: "artemis"
+          image: "apache/activemq-artemis:2.44.0"
+          autoRemove: true
+          startUpTimeout: 180
+          exposedPorts:
+            - 61616
+          waitFor:
+            logMessage: '.*AMQ221007: Server is now active.*'
+
+  # Create Camel JBang integration
+  - camel:
+      cli:
+        run:
+          waitForRunningState: false
+          integration:
+            file: "jms/jms-amqp-10-sink-route.yaml"
+            systemProperties:
+              properties:
+                - name: "http.sink.url"
+                  value: "http://localhost:${http.server.port}";
+                - name: "amqp.remote.uri"
+                  value: 
"amqp://${CITRUS_TESTCONTAINERS_ARTEMIS_HOST}:${CITRUS_TESTCONTAINERS_ARTEMIS_PORT}"
+
+  # The message goes on unchanged after the Kamelet
+  - http:
+      server: "httpServer"
+      receiveRequest:
+        POST:
+          path: "/result"
+          type: "plaintext"
+          headers:
+            - name: "X-Body-Type"
+              value: 'java.lang.String'
+            - name: "X-Content-Type"
+              value: 'ct='
+            - name: "origin"
+              value: 'citrus'
+          body:
+            data: 'Hello AMQP'
+  - http:
+      server: "httpServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
+
+  # The message is on the queue: persistent (delivery mode 2), with priority 4 
and the header as a JMS property
+  - camel:
+      cli:
+        verify:
+          integration: "jms-amqp-10-sink-route"
+          logMessage: 'Received from the queue: Hello AMQP (origin=citrus, 
JMSPriority=4, JMSDeliveryMode=2)'
+          maxAttempts: 30
+          delayBetweenAttempts: 1000
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/jms/jms-amqp-10-sink-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-amqp-10-sink-route.yaml
new file mode 100644
index 000000000..0bb78ae6b
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-amqp-10-sink-route.yaml
@@ -0,0 +1,57 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+- route:
+    from:
+      uri: "timer:send"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: 'Hello AMQP'
+        - setHeader:
+            name: origin
+            constant: 'citrus'
+        - to:
+            uri: "kamelet:jms-amqp-10-sink"
+            parameters:
+              remoteURI: '{{amqp.remote.uri}}'
+              destinationName: 'orders'
+              username: 'artemis'
+              password: 'artemis'
+        # what the Kamelet gives: the Java type of the body and the 
Content-Type
+        - setHeader:
+            name: X-Body-Type
+            simple: "${body.getClass().getName()}"
+        - setHeader:
+            name: X-Content-Type
+            simple: "ct=${header.Content-Type}"
+        - to:
+            uri: "{{http.sink.url}}/result"
+
+# reads the message back from the queue, to show that it arrived
+- route:
+    from:
+      uri: "kamelet:jms-amqp-10-source"
+      parameters:
+        remoteURI: '{{amqp.remote.uri}}'
+        destinationName: 'orders'
+        username: 'artemis'
+        password: 'artemis'
+      steps:
+        - log:
+            message: 'Received from the queue: ${body} 
(origin=${header.origin}, JMSPriority=${header.JMSPriority}, 
JMSDeliveryMode=${header.JMSDeliveryMode})'
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/jms/jms-amqp-10-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-amqp-10-source-route.citrus.it.yaml
new file mode 100644
index 000000000..758b95704
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-amqp-10-source-route.citrus.it.yaml
@@ -0,0 +1,80 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+name: jms-amqp-10-source-route-test
+description: 'jms-amqp-10-source receives a text message, with its JMS 
properties and JMS headers as headers, from a queue in Artemis'
+actions:
+  # Start Artemis
+  - testcontainers:
+      start:
+        container:
+          name: "artemis"
+          image: "apache/activemq-artemis:2.44.0"
+          autoRemove: true
+          startUpTimeout: 180
+          exposedPorts:
+            - 61616
+          waitFor:
+            logMessage: '.*AMQ221007: Server is now active.*'
+
+  # Create Camel JBang integration
+  - camel:
+      cli:
+        run:
+          waitForRunningState: false
+          integration:
+            file: "jms/jms-amqp-10-source-route.yaml"
+            systemProperties:
+              properties:
+                - name: "http.sink.url"
+                  value: "http://localhost:${http.server.port}";
+                - name: "amqp.remote.uri"
+                  value: 
"amqp://${CITRUS_TESTCONTAINERS_ARTEMIS_HOST}:${CITRUS_TESTCONTAINERS_ARTEMIS_PORT}"
+
+  # The source gives the text, the JMS property and the JMS headers
+  - http:
+      server: "httpServer"
+      receiveRequest:
+        POST:
+          path: "/result"
+          type: "plaintext"
+          headers:
+            - name: "X-Body-Type"
+              value: 'java.lang.String'
+            - name: "X-Content-Type"
+              value: 'ct='
+            - name: "origin"
+              value: 'citrus'
+            - name: "JMSMessageID"
+              value: '@notEmpty()@'
+            - name: "JMSDestination"
+              value: 'orders'
+            - name: "JMSTimestamp"
+              value: '@matches([0-9]+)@'
+            - name: "JMSPriority"
+              value: '4'
+            - name: "JMSRedelivered"
+              value: 'false'
+          body:
+            data: 'Hello AMQP'
+  - http:
+      server: "httpServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/jms/jms-amqp-10-source-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-amqp-10-source-route.yaml
new file mode 100644
index 000000000..5e71c8d85
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-amqp-10-source-route.yaml
@@ -0,0 +1,55 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+- route:
+    from:
+      uri: "kamelet:jms-amqp-10-source"
+      parameters:
+        remoteURI: '{{amqp.remote.uri}}'
+        destinationName: 'orders'
+        username: 'artemis'
+        password: 'artemis'
+      steps:
+        # what the Kamelet gives: the Java type of the body and the 
Content-Type
+        - setHeader:
+            name: X-Body-Type
+            simple: "${body.getClass().getName()}"
+        - setHeader:
+            name: X-Content-Type
+            simple: "ct=${header.Content-Type}"
+        - to:
+            uri: "{{http.sink.url}}/result"
+
+# puts one message on the queue for the source to receive
+- route:
+    from:
+      uri: "timer:send"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: 'Hello AMQP'
+        - setHeader:
+            name: origin
+            constant: 'citrus'
+        - to:
+            uri: "kamelet:jms-amqp-10-sink"
+            parameters:
+              remoteURI: '{{amqp.remote.uri}}'
+              destinationName: 'orders'
+              username: 'artemis'
+              password: 'artemis'
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/jms/jms-apache-artemis-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-apache-artemis-sink-route.citrus.it.yaml
new file mode 100644
index 000000000..e838bf10a
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-apache-artemis-sink-route.citrus.it.yaml
@@ -0,0 +1,79 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+name: jms-apache-artemis-sink-route-test
+description: 'jms-apache-artemis-sink sends a text message, with its headers 
as JMS properties, to a queue in Artemis'
+actions:
+  # Start Artemis
+  - testcontainers:
+      start:
+        container:
+          name: "artemis"
+          image: "apache/activemq-artemis:2.44.0"
+          autoRemove: true
+          startUpTimeout: 180
+          exposedPorts:
+            - 61616
+          waitFor:
+            logMessage: '.*AMQ221007: Server is now active.*'
+
+  # Create Camel JBang integration
+  - camel:
+      cli:
+        run:
+          waitForRunningState: false
+          integration:
+            file: "jms/jms-apache-artemis-sink-route.yaml"
+            systemProperties:
+              properties:
+                - name: "http.sink.url"
+                  value: "http://localhost:${http.server.port}";
+                - name: "artemis.broker.url"
+                  value: 
"tcp://${CITRUS_TESTCONTAINERS_ARTEMIS_HOST}:${CITRUS_TESTCONTAINERS_ARTEMIS_PORT}"
+
+  # The message goes on unchanged after the Kamelet
+  - http:
+      server: "httpServer"
+      receiveRequest:
+        POST:
+          path: "/result"
+          type: "plaintext"
+          headers:
+            - name: "X-Body-Type"
+              value: 'java.lang.String'
+            - name: "X-Content-Type"
+              value: 'ct='
+            - name: "origin"
+              value: 'citrus'
+          body:
+            data: 'Hello Artemis'
+  - http:
+      server: "httpServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
+
+  # The message is on the queue: persistent (delivery mode 2), with priority 4 
and the header as a JMS property
+  - camel:
+      cli:
+        verify:
+          integration: "jms-apache-artemis-sink-route"
+          logMessage: 'Received from the queue: Hello Artemis (origin=citrus, 
JMSPriority=4, JMSDeliveryMode=2)'
+          maxAttempts: 30
+          delayBetweenAttempts: 1000
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/jms/jms-apache-artemis-sink-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-apache-artemis-sink-route.yaml
new file mode 100644
index 000000000..8a3814391
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-apache-artemis-sink-route.yaml
@@ -0,0 +1,57 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+- route:
+    from:
+      uri: "timer:send"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: 'Hello Artemis'
+        - setHeader:
+            name: origin
+            constant: 'citrus'
+        - to:
+            uri: "kamelet:jms-apache-artemis-sink"
+            parameters:
+              brokerURL: '{{artemis.broker.url}}'
+              destinationName: 'orders'
+              username: 'artemis'
+              password: 'artemis'
+        # what the Kamelet gives: the Java type of the body and the 
Content-Type
+        - setHeader:
+            name: X-Body-Type
+            simple: "${body.getClass().getName()}"
+        - setHeader:
+            name: X-Content-Type
+            simple: "ct=${header.Content-Type}"
+        - to:
+            uri: "{{http.sink.url}}/result"
+
+# reads the message back from the queue, to show that it arrived
+- route:
+    from:
+      uri: "kamelet:jms-apache-artemis-source"
+      parameters:
+        brokerURL: '{{artemis.broker.url}}'
+        destinationName: 'orders'
+        username: 'artemis'
+        password: 'artemis'
+      steps:
+        - log:
+            message: 'Received from the queue: ${body} 
(origin=${header.origin}, JMSPriority=${header.JMSPriority}, 
JMSDeliveryMode=${header.JMSDeliveryMode})'
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/jms/jms-apache-artemis-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-apache-artemis-source-route.citrus.it.yaml
new file mode 100644
index 000000000..1b7bf8344
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-apache-artemis-source-route.citrus.it.yaml
@@ -0,0 +1,80 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+name: jms-apache-artemis-source-route-test
+description: 'jms-apache-artemis-source receives a text message, with its JMS 
properties and JMS headers as headers, from a queue in Artemis'
+actions:
+  # Start Artemis
+  - testcontainers:
+      start:
+        container:
+          name: "artemis"
+          image: "apache/activemq-artemis:2.44.0"
+          autoRemove: true
+          startUpTimeout: 180
+          exposedPorts:
+            - 61616
+          waitFor:
+            logMessage: '.*AMQ221007: Server is now active.*'
+
+  # Create Camel JBang integration
+  - camel:
+      cli:
+        run:
+          waitForRunningState: false
+          integration:
+            file: "jms/jms-apache-artemis-source-route.yaml"
+            systemProperties:
+              properties:
+                - name: "http.sink.url"
+                  value: "http://localhost:${http.server.port}";
+                - name: "artemis.broker.url"
+                  value: 
"tcp://${CITRUS_TESTCONTAINERS_ARTEMIS_HOST}:${CITRUS_TESTCONTAINERS_ARTEMIS_PORT}"
+
+  # The source gives the text, the JMS property and the JMS headers
+  - http:
+      server: "httpServer"
+      receiveRequest:
+        POST:
+          path: "/result"
+          type: "plaintext"
+          headers:
+            - name: "X-Body-Type"
+              value: 'java.lang.String'
+            - name: "X-Content-Type"
+              value: 'ct='
+            - name: "origin"
+              value: 'citrus'
+            - name: "JMSMessageID"
+              value: '@notEmpty()@'
+            - name: "JMSDestination"
+              value: 'ActiveMQQueue[orders]'
+            - name: "JMSTimestamp"
+              value: '@matches([0-9]+)@'
+            - name: "JMSPriority"
+              value: '4'
+            - name: "JMSRedelivered"
+              value: 'false'
+          body:
+            data: 'Hello Artemis'
+  - http:
+      server: "httpServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/jms/jms-apache-artemis-source-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-apache-artemis-source-route.yaml
new file mode 100644
index 000000000..d55d10858
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-apache-artemis-source-route.yaml
@@ -0,0 +1,55 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+- route:
+    from:
+      uri: "kamelet:jms-apache-artemis-source"
+      parameters:
+        brokerURL: '{{artemis.broker.url}}'
+        destinationName: 'orders'
+        username: 'artemis'
+        password: 'artemis'
+      steps:
+        # what the Kamelet gives: the Java type of the body and the 
Content-Type
+        - setHeader:
+            name: X-Body-Type
+            simple: "${body.getClass().getName()}"
+        - setHeader:
+            name: X-Content-Type
+            simple: "ct=${header.Content-Type}"
+        - to:
+            uri: "{{http.sink.url}}/result"
+
+# puts one message on the queue for the source to receive
+- route:
+    from:
+      uri: "timer:send"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: 'Hello Artemis'
+        - setHeader:
+            name: origin
+            constant: 'citrus'
+        - to:
+            uri: "kamelet:jms-apache-artemis-sink"
+            parameters:
+              brokerURL: '{{artemis.broker.url}}'
+              destinationName: 'orders'
+              username: 'artemis'
+              password: 'artemis'
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/jms/jms-ibm-mq-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-ibm-mq-sink-route.citrus.it.yaml
new file mode 100644
index 000000000..35a4ebd45
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-ibm-mq-sink-route.citrus.it.yaml
@@ -0,0 +1,88 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+name: jms-ibm-mq-sink-route-test
+description: 'jms-ibm-mq-sink sends a text message, with its headers as JMS 
properties, to a queue in IBM MQ'
+actions:
+  # Start IBM MQ
+  - testcontainers:
+      start:
+        container:
+          name: "ibmmq"
+          image: "icr.io/ibm-messaging/mq:10.0.1.0-r1"
+          autoRemove: true
+          startUpTimeout: 300
+          env:
+            - name: "LICENSE"
+              value: "accept"
+            - name: "MQ_QMGR_NAME"
+              value: "QM1"
+            - name: "MQ_APP_PASSWORD"
+              value: "passw0rd"
+          exposedPorts:
+            - 1414
+          waitFor:
+            logMessage: '.*AMQ5026I: The listener ''SYSTEM.LISTENER.TCP.1'' 
has started.*'
+
+  # Create Camel JBang integration
+  - camel:
+      cli:
+        run:
+          waitForRunningState: false
+          integration:
+            file: "jms/jms-ibm-mq-sink-route.yaml"
+            systemProperties:
+              properties:
+                - name: "http.sink.url"
+                  value: "http://localhost:${http.server.port}";
+                - name: "mq.host"
+                  value: "${CITRUS_TESTCONTAINERS_IBMMQ_HOST}"
+                - name: "mq.port"
+                  value: "${CITRUS_TESTCONTAINERS_IBMMQ_PORT}"
+
+  # The message goes on unchanged after the Kamelet
+  - http:
+      server: "httpServer"
+      receiveRequest:
+        POST:
+          path: "/result"
+          type: "plaintext"
+          headers:
+            - name: "X-Body-Type"
+              value: 'java.lang.String'
+            - name: "X-Content-Type"
+              value: 'ct='
+            - name: "origin"
+              value: 'citrus'
+          body:
+            data: 'Hello IBM MQ'
+  - http:
+      server: "httpServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
+
+  # The message is on the queue: persistent (delivery mode 2), with priority 4 
and the header as a JMS property
+  - camel:
+      cli:
+        verify:
+          integration: "jms-ibm-mq-sink-route"
+          logMessage: 'Received from the queue: Hello IBM MQ (origin=citrus, 
JMSPriority=4, JMSDeliveryMode=2)'
+          maxAttempts: 30
+          delayBetweenAttempts: 1000
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/jms/jms-ibm-mq-sink-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-ibm-mq-sink-route.yaml
new file mode 100644
index 000000000..2a2e3364b
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-ibm-mq-sink-route.yaml
@@ -0,0 +1,63 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+- route:
+    from:
+      uri: "timer:send"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: 'Hello IBM MQ'
+        - setHeader:
+            name: origin
+            constant: 'citrus'
+        - to:
+            uri: "kamelet:jms-ibm-mq-sink"
+            parameters:
+              serverName: '{{mq.host}}'
+              serverPort: '{{mq.port}}'
+              destinationName: 'DEV.QUEUE.1'
+              queueManager: 'QM1'
+              channel: 'DEV.APP.SVRCONN'
+              username: 'app'
+              password: 'passw0rd'
+        # what the Kamelet gives: the Java type of the body and the 
Content-Type
+        - setHeader:
+            name: X-Body-Type
+            simple: "${body.getClass().getName()}"
+        - setHeader:
+            name: X-Content-Type
+            simple: "ct=${header.Content-Type}"
+        - to:
+            uri: "{{http.sink.url}}/result"
+
+# reads the message back from the queue, to show that it arrived
+- route:
+    from:
+      uri: "kamelet:jms-ibm-mq-source"
+      parameters:
+        serverName: '{{mq.host}}'
+        serverPort: '{{mq.port}}'
+        destinationName: 'DEV.QUEUE.1'
+        queueManager: 'QM1'
+        channel: 'DEV.APP.SVRCONN'
+        username: 'app'
+        password: 'passw0rd'
+      steps:
+        - log:
+            message: 'Received from the queue: ${body} 
(origin=${header.origin}, JMSPriority=${header.JMSPriority}, 
JMSDeliveryMode=${header.JMSDeliveryMode})'
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/jms/jms-ibm-mq-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-ibm-mq-source-route.citrus.it.yaml
new file mode 100644
index 000000000..6e5e40916
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-ibm-mq-source-route.citrus.it.yaml
@@ -0,0 +1,95 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+name: jms-ibm-mq-source-route-test
+description: 'jms-ibm-mq-source receives a text message, with its JMS 
properties and JMS headers as headers, from a queue in IBM MQ'
+actions:
+  # Start IBM MQ
+  - testcontainers:
+      start:
+        container:
+          name: "ibmmq"
+          image: "icr.io/ibm-messaging/mq:10.0.1.0-r1"
+          autoRemove: true
+          startUpTimeout: 300
+          env:
+            - name: "LICENSE"
+              value: "accept"
+            - name: "MQ_QMGR_NAME"
+              value: "QM1"
+            - name: "MQ_APP_PASSWORD"
+              value: "passw0rd"
+          exposedPorts:
+            - 1414
+          waitFor:
+            logMessage: '.*AMQ5026I: The listener ''SYSTEM.LISTENER.TCP.1'' 
has started.*'
+
+  # Create Camel JBang integration
+  - camel:
+      cli:
+        run:
+          waitForRunningState: false
+          integration:
+            file: "jms/jms-ibm-mq-source-route.yaml"
+            systemProperties:
+              properties:
+                - name: "http.sink.url"
+                  value: "http://localhost:${http.server.port}";
+                - name: "mq.host"
+                  value: "${CITRUS_TESTCONTAINERS_IBMMQ_HOST}"
+                - name: "mq.port"
+                  value: "${CITRUS_TESTCONTAINERS_IBMMQ_PORT}"
+
+  # The source gives the text, the JMS property and the JMS headers
+  - http:
+      server: "httpServer"
+      receiveRequest:
+        POST:
+          path: "/result"
+          type: "plaintext"
+          headers:
+            - name: "X-Body-Type"
+              value: 'java.lang.String'
+            - name: "X-Content-Type"
+              value: 'ct='
+            - name: "origin"
+              value: 'citrus'
+            - name: "JMSMessageID"
+              value: '@notEmpty()@'
+            - name: "JMSDestination"
+              value: 'queue:///DEV.QUEUE.1'
+            - name: "JMSTimestamp"
+              value: '@matches([0-9]+)@'
+            - name: "JMSPriority"
+              value: '4'
+            - name: "JMSRedelivered"
+              value: 'false'
+            - name: "JMSXUserID"
+              value: '@startsWith(''app'')@'
+            - name: "JMS_IBM_Format"
+              value: '@startsWith(''MQSTR'')@'
+            - name: "JMS_IBM_PutDate"
+              value: '@matches([0-9]{8})@'
+          body:
+            data: 'Hello IBM MQ'
+  - http:
+      server: "httpServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/jms/jms-ibm-mq-source-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-ibm-mq-source-route.yaml
new file mode 100644
index 000000000..5694892a1
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/jms/jms-ibm-mq-source-route.yaml
@@ -0,0 +1,61 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+- route:
+    from:
+      uri: "kamelet:jms-ibm-mq-source"
+      parameters:
+        serverName: '{{mq.host}}'
+        serverPort: '{{mq.port}}'
+        destinationName: 'DEV.QUEUE.1'
+        queueManager: 'QM1'
+        channel: 'DEV.APP.SVRCONN'
+        username: 'app'
+        password: 'passw0rd'
+      steps:
+        # what the Kamelet gives: the Java type of the body and the 
Content-Type
+        - setHeader:
+            name: X-Body-Type
+            simple: "${body.getClass().getName()}"
+        - setHeader:
+            name: X-Content-Type
+            simple: "ct=${header.Content-Type}"
+        - to:
+            uri: "{{http.sink.url}}/result"
+
+# puts one message on the queue for the source to receive
+- route:
+    from:
+      uri: "timer:send"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: 'Hello IBM MQ'
+        - setHeader:
+            name: origin
+            constant: 'citrus'
+        - to:
+            uri: "kamelet:jms-ibm-mq-sink"
+            parameters:
+              serverName: '{{mq.host}}'
+              serverPort: '{{mq.port}}'
+              destinationName: 'DEV.QUEUE.1'
+              queueManager: 'QM1'
+              channel: 'DEV.APP.SVRCONN'
+              username: 'app'
+              password: 'passw0rd'
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/pulsar/pulsar-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/pulsar/pulsar-sink-route.citrus.it.yaml
new file mode 100644
index 000000000..ead098216
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/pulsar/pulsar-sink-route.citrus.it.yaml
@@ -0,0 +1,80 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+name: pulsar-sink-route-test
+description: 'pulsar-sink sends a text message, with a key from the key header 
and properties from a Map, to a topic in Pulsar'
+actions:
+  # Start Pulsar
+  - testcontainers:
+      start:
+        container:
+          name: "pulsar"
+          image: "apachepulsar/pulsar:5.0.1"
+          command: "bin/pulsar standalone"
+          autoRemove: true
+          startUpTimeout: 300
+          exposedPorts:
+            - 6650
+          waitFor:
+            logMessage: '.*Created namespace .*namespace=public/default.*'
+
+  # Create Camel JBang integration
+  - camel:
+      cli:
+        run:
+          waitForRunningState: false
+          integration:
+            file: "pulsar/pulsar-sink-route.yaml"
+            systemProperties:
+              properties:
+                - name: "http.sink.url"
+                  value: "http://localhost:${http.server.port}";
+                - name: "pulsar.service.url"
+                  value: 
"pulsar://${CITRUS_TESTCONTAINERS_PULSAR_HOST}:${CITRUS_TESTCONTAINERS_PULSAR_PORT}"
+
+  # The message goes on unchanged after the Kamelet
+  - http:
+      server: "httpServer"
+      receiveRequest:
+        POST:
+          path: "/result"
+          type: "plaintext"
+          headers:
+            - name: "X-Body-Type"
+              value: 'java.lang.String'
+            - name: "X-Content-Type"
+              value: 'ct='
+            - name: "key"
+              value: 'order-1'
+          body:
+            data: 'Hello Pulsar'
+  - http:
+      server: "httpServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
+
+  # The message is on the topic, with its key and properties
+  - camel:
+      cli:
+        verify:
+          integration: "pulsar-sink-route"
+          logMessage: 'Received from the topic: Hello Pulsar (key=order-1, 
properties={origin=citrus})'
+          maxAttempts: 30
+          delayBetweenAttempts: 1000
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/pulsar/pulsar-sink-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/pulsar/pulsar-sink-route.yaml
new file mode 100644
index 000000000..fb11f9614
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/pulsar/pulsar-sink-route.yaml
@@ -0,0 +1,64 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+- route:
+    from:
+      uri: "timer:send"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: 'Hello Pulsar'
+        - setHeader:
+            name: key
+            constant: 'order-1'
+        - setHeader:
+            name: CamelPulsarProducerMessageProperties
+            groovy: "[origin: 'citrus']"
+        - to:
+            uri: "kamelet:pulsar-sink"
+            parameters:
+              serviceUrl: '{{pulsar.service.url}}'
+              topicType: 'persistent'
+              tenant: 'public'
+              namespaceName: 'default'
+              topic: 'orders'
+        # what the Kamelet gives: the Java type of the body and the 
Content-Type
+        - setHeader:
+            name: X-Body-Type
+            simple: "${body.getClass().getName()}"
+        - setHeader:
+            name: X-Content-Type
+            simple: "ct=${header.Content-Type}"
+        - to:
+            uri: "{{http.sink.url}}/result"
+
+# reads the message back from the topic, to show that it arrived
+- route:
+    from:
+      uri: "kamelet:pulsar-source"
+      parameters:
+        serviceUrl: '{{pulsar.service.url}}'
+        topicType: 'persistent'
+        tenant: 'public'
+        namespaceName: 'default'
+        topic: 'orders'
+        subscriptionName: 'citrus'
+        subscriptionInitialPosition: 'EARLIEST'
+      steps:
+        - log:
+            message: 'Received from the topic: ${bodyAs(String)} 
(key=${header.key}, properties=${header.properties})'
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/pulsar/pulsar-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/pulsar/pulsar-source-route.citrus.it.yaml
new file mode 100644
index 000000000..ede516ff0
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/pulsar/pulsar-source-route.citrus.it.yaml
@@ -0,0 +1,81 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+name: pulsar-source-route-test
+description: 'pulsar-source receives a message from a topic in Pulsar, as 
bytes, with the topic, key, properties and message ID as headers'
+actions:
+  # Start Pulsar
+  - testcontainers:
+      start:
+        container:
+          name: "pulsar"
+          image: "apachepulsar/pulsar:5.0.1"
+          command: "bin/pulsar standalone"
+          autoRemove: true
+          startUpTimeout: 300
+          exposedPorts:
+            - 6650
+          waitFor:
+            logMessage: '.*Created namespace .*namespace=public/default.*'
+
+  # Create Camel JBang integration
+  - camel:
+      cli:
+        run:
+          waitForRunningState: false
+          integration:
+            file: "pulsar/pulsar-source-route.yaml"
+            systemProperties:
+              properties:
+                - name: "http.sink.url"
+                  value: "http://localhost:${http.server.port}";
+                - name: "pulsar.service.url"
+                  value: 
"pulsar://${CITRUS_TESTCONTAINERS_PULSAR_HOST}:${CITRUS_TESTCONTAINERS_PULSAR_PORT}"
+
+  # The source gives the payload as bytes, with the topic, key, properties, 
message ID, publish time and producer name
+  - http:
+      server: "httpServer"
+      receiveRequest:
+        POST:
+          path: "/result"
+          type: "plaintext"
+          headers:
+            - name: "X-Body-Type"
+              value: '[B'
+            - name: "X-Content-Type"
+              value: 'ct='
+            - name: "topic_name"
+              value: 'persistent://public/default/orders'
+            - name: "key"
+              value: 'order-1'
+            - name: "X-Origin"
+              value: 'citrus'
+            - name: "message_id"
+              value: '@notEmpty()@'
+            - name: "publish_time"
+              value: '@matches([0-9]+)@'
+            - name: "producer_name"
+              value: '@notEmpty()@'
+          body:
+            data: 'Hello Pulsar'
+  - http:
+      server: "httpServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/pulsar/pulsar-source-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/pulsar/pulsar-source-route.yaml
new file mode 100644
index 000000000..96db8de7b
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/pulsar/pulsar-source-route.yaml
@@ -0,0 +1,68 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+- route:
+    from:
+      uri: "kamelet:pulsar-source"
+      parameters:
+        serviceUrl: '{{pulsar.service.url}}'
+        topicType: 'persistent'
+        tenant: 'public'
+        namespaceName: 'default'
+        topic: 'orders'
+        subscriptionName: 'citrus'
+        subscriptionInitialPosition: 'EARLIEST'
+      steps:
+        # what the Kamelet gives: the Java type of the body and the 
Content-Type
+        - setHeader:
+            name: X-Body-Type
+            simple: "${body.getClass().getName()}"
+        - setHeader:
+            name: X-Content-Type
+            simple: "ct=${header.Content-Type}"
+        - setHeader:
+            name: X-Origin
+            simple: "${header.properties[origin]}"
+        # the body is bytes: give the HTTP server text
+        - convertBodyTo:
+            type: "java.lang.String"
+        - to:
+            uri: "{{http.sink.url}}/result"
+
+# sends one message for the source to receive; the source reads from the 
earliest message, so the order does not matter
+- route:
+    from:
+      uri: "timer:send"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: 'Hello Pulsar'
+        - setHeader:
+            name: key
+            constant: 'order-1'
+        - setHeader:
+            name: CamelPulsarProducerMessageProperties
+            groovy: "[origin: 'citrus']"
+        - to:
+            uri: "kamelet:pulsar-sink"
+            parameters:
+              serviceUrl: '{{pulsar.service.url}}'
+              topicType: 'persistent'
+              tenant: 'public'
+              namespaceName: 'default'
+              topic: 'orders'
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/rabbitmq/spring-rabbitmq-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/rabbitmq/spring-rabbitmq-sink-route.citrus.it.yaml
new file mode 100644
index 000000000..b5967014f
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/rabbitmq/spring-rabbitmq-sink-route.citrus.it.yaml
@@ -0,0 +1,86 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+name: spring-rabbitmq-sink-route-test
+description: 'spring-rabbitmq-sink publishes a text message, with its headers, 
to an exchange in RabbitMQ that routes it to a queue'
+actions:
+  # Start RabbitMQ
+  - testcontainers:
+      start:
+        container:
+          name: "rabbitmq"
+          image: "rabbitmq:4.3.6"
+          autoRemove: true
+          startUpTimeout: 180
+          env:
+            - name: "RABBITMQ_DEFAULT_USER"
+              value: "citrus"
+            - name: "RABBITMQ_DEFAULT_PASS"
+              value: "citrus"
+          exposedPorts:
+            - 5672
+          waitFor:
+            logMessage: '.*Server startup complete.*'
+
+  # Create Camel JBang integration
+  - camel:
+      cli:
+        run:
+          waitForRunningState: false
+          integration:
+            file: "rabbitmq/spring-rabbitmq-sink-route.yaml"
+            systemProperties:
+              properties:
+                - name: "http.sink.url"
+                  value: "http://localhost:${http.server.port}";
+                - name: "rabbitmq.host"
+                  value: "${CITRUS_TESTCONTAINERS_RABBITMQ_HOST}"
+                - name: "rabbitmq.port"
+                  value: "${CITRUS_TESTCONTAINERS_RABBITMQ_PORT}"
+
+  # The message goes on unchanged after the Kamelet
+  - http:
+      server: "httpServer"
+      receiveRequest:
+        POST:
+          path: "/result"
+          type: "plaintext"
+          headers:
+            - name: "X-Body-Type"
+              value: 'java.lang.String'
+            - name: "X-Content-Type"
+              value: 'ct='
+            - name: "origin"
+              value: 'citrus'
+          body:
+            data: 'Hello RabbitMQ'
+  - http:
+      server: "httpServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
+
+  # The message is on the queue, as text/plain, with the header and the 
routing key
+  - camel:
+      cli:
+        verify:
+          integration: "spring-rabbitmq-sink-route"
+          logMessage: 'Received from the queue: Hello RabbitMQ (origin=citrus, 
content type=text/plain, routing key=new-order)'
+          maxAttempts: 30
+          delayBetweenAttempts: 1000
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/rabbitmq/spring-rabbitmq-sink-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/rabbitmq/spring-rabbitmq-sink-route.yaml
new file mode 100644
index 000000000..445179f28
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/rabbitmq/spring-rabbitmq-sink-route.yaml
@@ -0,0 +1,65 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+- route:
+    from:
+      uri: "timer:send"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: 'Hello RabbitMQ'
+        - setHeader:
+            name: origin
+            constant: 'citrus'
+        - to:
+            uri: "kamelet:spring-rabbitmq-sink"
+            parameters:
+              host: '{{rabbitmq.host}}'
+              port: '{{rabbitmq.port}}'
+              username: 'citrus'
+              password: 'citrus'
+              exchangeName: 'orders'
+              queues: 'orders'
+              routingKey: 'new-order'
+              autoDeclareProducer: 'true'
+        # what the Kamelet gives: the Java type of the body and the 
Content-Type
+        - setHeader:
+            name: X-Body-Type
+            simple: "${body.getClass().getName()}"
+        - setHeader:
+            name: X-Content-Type
+            simple: "ct=${header.Content-Type}"
+        - to:
+            uri: "{{http.sink.url}}/result"
+
+# reads the message back from the queue, to show that it arrived
+- route:
+    from:
+      uri: "kamelet:spring-rabbitmq-source"
+      parameters:
+        host: '{{rabbitmq.host}}'
+        port: '{{rabbitmq.port}}'
+        username: 'citrus'
+        password: 'citrus'
+        exchangeName: 'orders'
+        queues: 'orders'
+        routingKey: 'new-order'
+        autoDeclare: 'true'
+      steps:
+        - log:
+            message: 'Received from the queue: ${body} 
(origin=${header.origin}, content 
type=${header.CamelSpringRabbitmqContentType}, routing 
key=${header.CamelSpringRabbitmqRoutingKey})'
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/rabbitmq/spring-rabbitmq-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/rabbitmq/spring-rabbitmq-source-route.citrus.it.yaml
new file mode 100644
index 000000000..0505dc90c
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/rabbitmq/spring-rabbitmq-source-route.citrus.it.yaml
@@ -0,0 +1,83 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+name: spring-rabbitmq-source-route-test
+description: 'spring-rabbitmq-source creates and binds a queue, and receives a 
text message with its headers from it'
+actions:
+  # Start RabbitMQ
+  - testcontainers:
+      start:
+        container:
+          name: "rabbitmq"
+          image: "rabbitmq:4.3.6"
+          autoRemove: true
+          startUpTimeout: 180
+          env:
+            - name: "RABBITMQ_DEFAULT_USER"
+              value: "citrus"
+            - name: "RABBITMQ_DEFAULT_PASS"
+              value: "citrus"
+          exposedPorts:
+            - 5672
+          waitFor:
+            logMessage: '.*Server startup complete.*'
+
+  # Create Camel JBang integration
+  - camel:
+      cli:
+        run:
+          waitForRunningState: false
+          integration:
+            file: "rabbitmq/spring-rabbitmq-source-route.yaml"
+            systemProperties:
+              properties:
+                - name: "http.sink.url"
+                  value: "http://localhost:${http.server.port}";
+                - name: "rabbitmq.host"
+                  value: "${CITRUS_TESTCONTAINERS_RABBITMQ_HOST}"
+                - name: "rabbitmq.port"
+                  value: "${CITRUS_TESTCONTAINERS_RABBITMQ_PORT}"
+
+  # The source gives the text, the header of the RabbitMQ message, and the 
exchange, routing key and content type
+  - http:
+      server: "httpServer"
+      receiveRequest:
+        POST:
+          path: "/result"
+          type: "plaintext"
+          headers:
+            - name: "X-Body-Type"
+              value: 'java.lang.String'
+            - name: "X-Content-Type"
+              value: 'ct='
+            - name: "origin"
+              value: 'citrus'
+            - name: "X-Exchange-Name"
+              value: 'orders'
+            - name: "X-Routing-Key"
+              value: 'new-order'
+            - name: "X-Rabbitmq-Content-Type"
+              value: 'text/plain'
+          body:
+            data: 'Hello RabbitMQ'
+  - http:
+      server: "httpServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/rabbitmq/spring-rabbitmq-source-route.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/rabbitmq/spring-rabbitmq-source-route.yaml
new file mode 100644
index 000000000..88db2dce8
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/rabbitmq/spring-rabbitmq-source-route.yaml
@@ -0,0 +1,72 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+- route:
+    from:
+      uri: "kamelet:spring-rabbitmq-source"
+      parameters:
+        host: '{{rabbitmq.host}}'
+        port: '{{rabbitmq.port}}'
+        username: 'citrus'
+        password: 'citrus'
+        exchangeName: 'orders'
+        queues: 'orders'
+        routingKey: 'new-order'
+        autoDeclare: 'true'
+      steps:
+        # what the Kamelet gives: the Java type of the body and the 
Content-Type
+        - setHeader:
+            name: X-Body-Type
+            simple: "${body.getClass().getName()}"
+        - setHeader:
+            name: X-Content-Type
+            simple: "ct=${header.Content-Type}"
+        - setHeader:
+            name: X-Exchange-Name
+            simple: "${header.CamelSpringRabbitmqExchangeName}"
+        - setHeader:
+            name: X-Routing-Key
+            simple: "${header.CamelSpringRabbitmqRoutingKey}"
+        - setHeader:
+            name: X-Rabbitmq-Content-Type
+            simple: "${header.CamelSpringRabbitmqContentType}"
+        - to:
+            uri: "{{http.sink.url}}/result"
+
+# publishes one message for the source to receive; it declares the queue too, 
so the message is not dropped when it comes before the source
+- route:
+    from:
+      uri: "timer:send"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: 'Hello RabbitMQ'
+        - setHeader:
+            name: origin
+            constant: 'citrus'
+        - to:
+            uri: "kamelet:spring-rabbitmq-sink"
+            parameters:
+              host: '{{rabbitmq.host}}'
+              port: '{{rabbitmq.port}}'
+              username: 'citrus'
+              password: 'citrus'
+              exchangeName: 'orders'
+              queues: 'orders'
+              routingKey: 'new-order'
+              autoDeclareProducer: 'true'
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/smpp/smpp-sink-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/smpp/smpp-sink-route.citrus.it.yaml
new file mode 100644
index 000000000..be79d9767
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/smpp/smpp-sink-route.citrus.it.yaml
@@ -0,0 +1,86 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+name: smpp-sink-route-test
+description: 'smpp-sink sends the body as an SMS to the number in destAddr, 
through the SMPPSim SMS center, and gives the ID of the SMS'
+actions:
+  # Start the SMPPSim SMS center (SMPP on port 2775, its web form to inject 
SMS on port 89)
+  - testcontainers:
+      start:
+        container:
+          name: "smppsim"
+          image: "jookies/smppsim:latest"
+          autoRemove: true
+          startUpTimeout: 180
+          exposedPorts:
+            - 2775
+            - 89
+          waitFor:
+            logMessage: '.*StandardConnectionHandler waiting for connection.*'
+
+  # Create Camel JBang integration
+  - camel:
+      cli:
+        run:
+          waitForRunningState: false
+          integration:
+            file: "smpp/smpp-sink-route.yaml"
+            systemProperties:
+              properties:
+                - name: "http.sink.url"
+                  value: "http://localhost:${http.server.port}";
+                - name: "smpp.host"
+                  value: "${CITRUS_TESTCONTAINERS_SMPPSIM_HOST}"
+                - name: "smpp.port"
+                  value: "${CITRUS_TESTCONTAINERS_SMPPSIM_PORT}"
+
+  # The message goes on unchanged after the Kamelet, with the ID the SMS 
center gave the SMS, and the number of SMS sent
+  - http:
+      server: "httpServer"
+      receiveRequest:
+        POST:
+          path: "/result"
+          type: "plaintext"
+          headers:
+            - name: "X-Body-Type"
+              value: 'java.lang.String'
+            - name: "X-Content-Type"
+              value: 'ct='
+            - name: "X-Smpp-Id"
+              value: '@matches([0-9A-Za-z]+)@'
+            - name: "X-Smpp-Id-Type"
+              value: 'java.util.ArrayList'
+            - name: "X-Smpp-Sent-Message-Count"
+              value: '1'
+          body:
+            data: 'Your code is 1234'
+  - http:
+      server: "httpServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
+
+  # The SMS center got the SMS, from 1616 to 4598765432, with the text
+  - repeatOnError:
+      until: "i = 10"
+      autoSleep: 1000
+      actions:
+      - groovy:
+          script:
+            file: "smpp/smppsim-verify-submit.groovy"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/smpp/smpp-sink-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/smpp/smpp-sink-route.yaml
new file mode 100644
index 000000000..17989cc80
--- /dev/null
+++ b/tests/camel-kamelets-itest/src/test/resources/smpp/smpp-sink-route.yaml
@@ -0,0 +1,51 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+- route:
+    from:
+      uri: "timer:send"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: 'Your code is 1234'
+        - to:
+            uri: "kamelet:smpp-sink"
+            parameters:
+              host: '{{smpp.host}}'
+              port: '{{smpp.port}}'
+              systemId: 'smppclient1'
+              password: 'password'
+              destAddr: '4598765432'
+        # what the Kamelet gives: the Java type of the body and the 
Content-Type
+        - setHeader:
+            name: X-Body-Type
+            simple: "${body.getClass().getName()}"
+        - setHeader:
+            name: X-Content-Type
+            simple: "ct=${header.Content-Type}"
+        - setHeader:
+            name: X-Smpp-Id
+            simple: "${header.CamelSmppId}"
+        - setHeader:
+            name: X-Smpp-Id-Type
+            simple: "${header.CamelSmppId.getClass().getName()}"
+        - setHeader:
+            name: X-Smpp-Sent-Message-Count
+            simple: "${header.CamelSmppSentMessageCount}"
+        - to:
+            uri: "{{http.sink.url}}/result"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/smpp/smpp-source-route.citrus.it.yaml
 
b/tests/camel-kamelets-itest/src/test/resources/smpp/smpp-source-route.citrus.it.yaml
new file mode 100644
index 000000000..4bbc58777
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/smpp/smpp-source-route.citrus.it.yaml
@@ -0,0 +1,91 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+name: smpp-source-route-test
+description: 'smpp-source receives an SMS that a phone sent, through the 
SMPPSim SMS center, with the numbers of the sender and the recipient'
+actions:
+  # Start the SMPPSim SMS center (SMPP on port 2775, its web form to inject 
SMS on port 89)
+  - testcontainers:
+      start:
+        container:
+          name: "smppsim"
+          image: "jookies/smppsim:latest"
+          autoRemove: true
+          startUpTimeout: 180
+          exposedPorts:
+            - 2775
+            - 89
+          waitFor:
+            logMessage: '.*StandardConnectionHandler waiting for connection.*'
+
+  # Create Camel JBang integration
+  - camel:
+      cli:
+        run:
+          waitForRunningState: false
+          integration:
+            file: "smpp/smpp-source-route.yaml"
+            systemProperties:
+              properties:
+                - name: "http.sink.url"
+                  value: "http://localhost:${http.server.port}";
+                - name: "smpp.host"
+                  value: "${CITRUS_TESTCONTAINERS_SMPPSIM_HOST}"
+                - name: "smpp.port"
+                  value: "${CITRUS_TESTCONTAINERS_SMPPSIM_PORT}"
+
+  # Wait until the source has logged in to the SMS center: SMPPSim holds back 
an SMS that comes before
+  - camel:
+      cli:
+        verify:
+          integration: "smpp-source-route"
+          logMessage: 'Connected to: smpp://smppclient1@'
+          maxAttempts: 60
+          delayBetweenAttempts: 1000
+
+  # A phone (4511111111) sends an SMS to 1616
+  - groovy:
+      script:
+        file: "smpp/smppsim-inject-mo.groovy"
+
+  # The source gives the text of the SMS, the numbers, and the message type
+  - http:
+      server: "httpServer"
+      receiveRequest:
+        POST:
+          path: "/result"
+          type: "plaintext"
+          headers:
+            - name: "X-Body-Type"
+              value: 'java.lang.String'
+            - name: "X-Content-Type"
+              value: 'ct='
+            - name: "X-Smpp-Source-Addr"
+              value: '4511111111'
+            - name: "X-Smpp-Dest-Addr"
+              value: '1616'
+            - name: "X-Smpp-Message-Type"
+              value: 'DeliverSm'
+          body:
+            data: 'YES please'
+  - http:
+      server: "httpServer"
+      sendResponse:
+        response:
+          status: 200
+          reasonPhrase: "OK"
+          version: "HTTP/1.1"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/smpp/smpp-source-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/smpp/smpp-source-route.yaml
new file mode 100644
index 000000000..e760c5a08
--- /dev/null
+++ b/tests/camel-kamelets-itest/src/test/resources/smpp/smpp-source-route.yaml
@@ -0,0 +1,44 @@
+# ---------------------------------------------------------------------------
+# 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.
+# ---------------------------------------------------------------------------
+
+- route:
+    from:
+      uri: "kamelet:smpp-source"
+      parameters:
+        host: '{{smpp.host}}'
+        port: '{{smpp.port}}'
+        systemId: 'smppclient1'
+        password: 'password'
+      steps:
+        # what the Kamelet gives: the Java type of the body and the 
Content-Type
+        - setHeader:
+            name: X-Body-Type
+            simple: "${body.getClass().getName()}"
+        - setHeader:
+            name: X-Content-Type
+            simple: "ct=${header.Content-Type}"
+        - setHeader:
+            name: X-Smpp-Source-Addr
+            simple: "${header.CamelSmppSourceAddr}"
+        - setHeader:
+            name: X-Smpp-Dest-Addr
+            simple: "${header.CamelSmppDestAddr}"
+        - setHeader:
+            name: X-Smpp-Message-Type
+            simple: "${header.CamelSmppMessageType}"
+        - to:
+            uri: "{{http.sink.url}}/result"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/smpp/smppsim-inject-mo.groovy 
b/tests/camel-kamelets-itest/src/test/resources/smpp/smppsim-inject-mo.groovy
new file mode 100644
index 000000000..66dce6aed
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/smpp/smppsim-inject-mo.groovy
@@ -0,0 +1,40 @@
+/*
+ * 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.
+ */
+
+// A phone sends an SMS into the SMPPSim SMS center: the web form of the
+// simulator (port 89 of the container) injects it, and SMPPSim delivers it to
+// the receivers logged in to it, such as the smpp-source Kamelet.
+//
+// String concatenation rather than Groovy GStrings, because Citrus resolves
+// dollar-brace expressions in these scripts as its own test variables.
+
+def smppsim = context.getReferenceResolver().resolve('smppsim', 
org.testcontainers.containers.GenericContainer.class)
+def form = [
+    short_message: 'YES please', source_addr: '4511111111', destination_addr: 
'1616', submit: 'Submit Message',
+    service_type: '', source_addr_ton: '0', source_addr_npi: '0', 
dest_addr_ton: '0', dest_addr_npi: '0',
+    esm_class: '0', protocol_ID: '0', priority_flag: '0', 
registered_delivery_flag: '0', data_coding: '0'
+]
+def query = form.collect { k, v -> k + '=' + URLEncoder.encode(v, 'UTF-8') 
}.join('&')
+def url = 'http://' + smppsim.getHost() + ':' + smppsim.getMappedPort(89) + 
'/inject_mo?' + query
+
+def conn = new URL(url).openConnection()
+conn.connectTimeout = 10000
+conn.readTimeout = 30000
+def code = conn.responseCode
+if (code != 200) {
+    throw new IllegalStateException('Injecting the SMS into SMPPSim failed 
with HTTP ' + code)
+}
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/smpp/smppsim-verify-submit.groovy
 
b/tests/camel-kamelets-itest/src/test/resources/smpp/smppsim-verify-submit.groovy
new file mode 100644
index 000000000..55f3de305
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/smpp/smppsim-verify-submit.groovy
@@ -0,0 +1,27 @@
+/*
+ * 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.
+ */
+
+// Checks that the SMPPSim SMS center got the SMS that smpp-sink sent: SMPPSim
+// logs each submit_sm it receives, with its fields.
+
+def smppsim = context.getReferenceResolver().resolve('smppsim', 
org.testcontainers.containers.GenericContainer.class)
+def logs = smppsim.getLogs()
+['source_addr=1616', 'dest_addr=4598765432', 'short_message=Your code is 
1234'].each { expected ->
+    if (!logs.contains(expected)) {
+        throw new AssertionError('SMPPSim did not log ' + expected + ' for a 
submit_sm')
+    }
+}

Reply via email to