getAckId() {
+// return ofNullable(ackId);
+// }
+//
+// @Override
+// public void close() throws JMSException {
+// if (LOGGER.isDebugEnabled()) {
+// LOGGER.debug("Closing session " + session);
+// }
+// session.close();
+// }
+//}
diff --git a/src/main/java/org/mule/extensions/jms/internal/connection/session/TransactionInformation.java b/src/main/java/org/mule/extensions/jms/internal/connection/session/TransactionInformation.java
index 13dc0bcd..02bfb39b 100644
--- a/src/main/java/org/mule/extensions/jms/internal/connection/session/TransactionInformation.java
+++ b/src/main/java/org/mule/extensions/jms/internal/connection/session/TransactionInformation.java
@@ -1,36 +1,40 @@
-/*
- * Copyright 2023 Salesforce, Inc. All rights reserved.
- * The software in this package is published under the terms of the CPAL v1.0
- * license, a copy of which has been included with this distribution in the
- * LICENSE.txt file.
- */
-package org.mule.extensions.jms.internal.connection.session;
-
-/**
- * Object to save the information about the current transaction.
- *
- * @since 1.0
- */
-final class TransactionInformation {
-
- private JmsSession jmsSession;
- private TransactionStatus transactionStatus;
-
- TransactionInformation() {}
-
- JmsSession getJmsSession() {
- return jmsSession;
- }
-
- void setJmsSession(JmsSession jmsSession) {
- this.jmsSession = jmsSession;
- }
-
- TransactionStatus getTransactionStatus() {
- return transactionStatus;
- }
-
- void setTransactionStatus(TransactionStatus transactionStatus) {
- this.transactionStatus = transactionStatus;
- }
-}
+///*
+// * Copyright 2023 Salesforce, Inc. All rights reserved.
+// * The software in this package is published under the terms of the CPAL v1.0
+// * license, a copy of which has been included with this distribution in the
+// * LICENSE.txt file.
+// */
+//package org.mule.extensions.jms.internal.connection.session;
+//
+//import org.mule.extensions.jms.internal.ExcludeFromGeneratedCoverage;
+//
+///**
+// * Object to save the information about the current transaction.
+// *
+// * @since 1.0
+// */
+//final class TransactionInformation {
+//
+// private JmsSession jmsSession;
+// private TransactionStatus transactionStatus;
+//
+// TransactionInformation() {}
+// @ExcludeFromGeneratedCoverage
+// JmsSession getJmsSession() {
+// return jmsSession;
+// }
+//
+// @ExcludeFromGeneratedCoverage
+// void setJmsSession(JmsSession jmsSession) {
+// this.jmsSession = jmsSession;
+// }
+//
+// @ExcludeFromGeneratedCoverage
+// TransactionStatus getTransactionStatus() {
+// return transactionStatus;
+// }
+//@ExcludeFromGeneratedCoverage
+// void setTransactionStatus(TransactionStatus transactionStatus) {
+// this.transactionStatus = transactionStatus;
+// }
+//}
diff --git a/src/main/java/org/mule/extensions/jms/internal/connection/session/TransactionStatus.java b/src/main/java/org/mule/extensions/jms/internal/connection/session/TransactionStatus.java
index 0093e54d..40a8e6d7 100644
--- a/src/main/java/org/mule/extensions/jms/internal/connection/session/TransactionStatus.java
+++ b/src/main/java/org/mule/extensions/jms/internal/connection/session/TransactionStatus.java
@@ -1,20 +1,20 @@
-/*
- * Copyright 2023 Salesforce, Inc. All rights reserved.
- * The software in this package is published under the terms of the CPAL v1.0
- * license, a copy of which has been included with this distribution in the
- * LICENSE.txt file.
- */
-package org.mule.extensions.jms.internal.connection.session;
-
-/**
- * Enum to indicate the current status of a transaction over a session.
- *
- * - {@link TransactionStatus#NONE} means that there is no started transaction for the current {@link Thread}
- * - {@link TransactionStatus#STARTED} means that there is a transaction being executed in the current {@link Thread}
- *
- *
- * @since 1.0
- */
-public enum TransactionStatus {
- NONE, STARTED
-}
+///*
+// * Copyright 2023 Salesforce, Inc. All rights reserved.
+// * The software in this package is published under the terms of the CPAL v1.0
+// * license, a copy of which has been included with this distribution in the
+// * LICENSE.txt file.
+// */
+//package org.mule.extensions.jms.internal.connection.session;
+//
+///**
+// * Enum to indicate the current status of a transaction over a session.
+// *
+// * - {@link TransactionStatus#NONE} means that there is no started transaction for the current {@link Thread}
+// * - {@link TransactionStatus#STARTED} means that there is a transaction being executed in the current {@link Thread}
+// *
+// *
+// * @since 1.0
+// */
+//public enum TransactionStatus {
+// NONE, STARTED
+//}
diff --git a/src/main/java/org/mule/extensions/jms/internal/consume/JmsMessageConsumer.java b/src/main/java/org/mule/extensions/jms/internal/consume/JmsMessageConsumer.java
index 1b8d3358..cc578038 100644
--- a/src/main/java/org/mule/extensions/jms/internal/consume/JmsMessageConsumer.java
+++ b/src/main/java/org/mule/extensions/jms/internal/consume/JmsMessageConsumer.java
@@ -1,94 +1,94 @@
-/*
- * Copyright 2023 Salesforce, Inc. All rights reserved.
- * The software in this package is published under the terms of the CPAL v1.0
- * license, a copy of which has been included with this distribution in the
- * LICENSE.txt file.
- */
-package org.mule.extensions.jms.internal.consume;
-
-import static java.lang.String.format;
-import static org.mule.runtime.api.util.Preconditions.checkArgument;
-import static org.slf4j.LoggerFactory.getLogger;
-import org.mule.extensions.jms.api.exception.JmsTimeoutException;
-
-import org.apache.commons.lang3.time.StopWatch;
-import org.slf4j.Logger;
-
-import javax.jms.JMSException;
-import javax.jms.Message;
-import javax.jms.MessageConsumer;
-import javax.jms.MessageListener;
-
-/**
- * Wrapper implementation of a JMS {@link MessageConsumer}
- *
- * @since 1.0
- */
-public final class JmsMessageConsumer implements AutoCloseable {
-
- private static final Logger LOGGER = getLogger(JmsMessageConsumer.class);
- private final MessageConsumer consumer;
-
- public JmsMessageConsumer(MessageConsumer consumer) {
- checkArgument(consumer != null, "A non null MessageConsumer is required to use as delegate");
- this.consumer = consumer;
- }
-
- public void listen(MessageListener listener) throws JMSException {
- consumer.setMessageListener(listener);
- }
-
- public Message consume(Long maximumWaitTime) throws JMSException, JmsTimeoutException {
-
- if (maximumWaitTime == -1) {
- return receive();
- }
-
- if (maximumWaitTime == 0) {
- return receiveNoWait();
- }
-
- return receiveWithTimeout(maximumWaitTime);
- }
-
- @Override
- public void close() throws JMSException {
- if (LOGGER.isDebugEnabled()) {
- LOGGER.debug("Closing consumer " + consumer);
- }
- consumer.close();
- }
-
- private Message receiveWithTimeout(Long maximumWaitTime) throws JMSException, JmsTimeoutException {
- if (LOGGER.isDebugEnabled()) {
- LOGGER.debug(format("Waiting for a message, timeout will be in [%s] millis", maximumWaitTime));
- }
-
- StopWatch timeoutValidator = new StopWatch();
- timeoutValidator.start();
- Message message = consumer.receive(maximumWaitTime);
- timeoutValidator.stop();
-
- if (message == null && timeoutValidator.getTime() >= maximumWaitTime) {
- throw new JmsTimeoutException("Failed to retrieve a Message, operation timed out");
- }
- return message;
- }
-
- private Message receiveNoWait() throws JMSException {
- if (LOGGER.isDebugEnabled()) {
- LOGGER.debug("Trying to consume an immediately available message");
- }
-
- return consumer.receiveNoWait();
- }
-
- private Message receive() throws JMSException {
- if (LOGGER.isDebugEnabled()) {
- LOGGER.debug("No Timeout set, waiting for a message until one arrives");
- }
-
- return consumer.receive();
- }
-
-}
+///*
+// * Copyright 2023 Salesforce, Inc. All rights reserved.
+// * The software in this package is published under the terms of the CPAL v1.0
+// * license, a copy of which has been included with this distribution in the
+// * LICENSE.txt file.
+// */
+//package org.mule.extensions.jms.internal.consume;
+//
+//import static java.lang.String.format;
+//import static org.mule.runtime.api.util.Preconditions.checkArgument;
+//import static org.slf4j.LoggerFactory.getLogger;
+//import org.mule.extensions.jms.api.exception.JmsTimeoutException;
+//
+//import org.apache.commons.lang3.time.StopWatch;
+//import org.slf4j.Logger;
+//
+//import javax.jms.JMSException;
+//import javax.jms.Message;
+//import javax.jms.MessageConsumer;
+//import javax.jms.MessageListener;
+//
+///**
+// * Wrapper implementation of a JMS {@link MessageConsumer}
+// *
+// * @since 1.0
+// */
+//public final class JmsMessageConsumer implements AutoCloseable {
+//
+// private static final Logger LOGGER = getLogger(JmsMessageConsumer.class);
+// private final MessageConsumer consumer;
+//
+// public JmsMessageConsumer(MessageConsumer consumer) {
+// checkArgument(consumer != null, "A non null MessageConsumer is required to use as delegate");
+// this.consumer = consumer;
+// }
+//
+// public void listen(MessageListener listener) throws JMSException {
+// consumer.setMessageListener(listener);
+// }
+//
+// public Message consume(Long maximumWaitTime) throws JMSException, JmsTimeoutException {
+//
+// if (maximumWaitTime == -1) {
+// return receive();
+// }
+//
+// if (maximumWaitTime == 0) {
+// return receiveNoWait();
+// }
+//
+// return receiveWithTimeout(maximumWaitTime);
+// }
+//
+// @Override
+// public void close() throws JMSException {
+// if (LOGGER.isDebugEnabled()) {
+// LOGGER.debug("Closing consumer " + consumer);
+// }
+// consumer.close();
+// }
+//
+// private Message receiveWithTimeout(Long maximumWaitTime) throws JMSException, JmsTimeoutException {
+// if (LOGGER.isDebugEnabled()) {
+// LOGGER.debug(format("Waiting for a message, timeout will be in [%s] millis", maximumWaitTime));
+// }
+//
+// StopWatch timeoutValidator = new StopWatch();
+// timeoutValidator.start();
+// Message message = consumer.receive(maximumWaitTime);
+// timeoutValidator.stop();
+//
+// if (message == null && timeoutValidator.getTime() >= maximumWaitTime) {
+// throw new JmsTimeoutException("Failed to retrieve a Message, operation timed out");
+// }
+// return message;
+// }
+//
+// private Message receiveNoWait() throws JMSException {
+// if (LOGGER.isDebugEnabled()) {
+// LOGGER.debug("Trying to consume an immediately available message");
+// }
+//
+// return consumer.receiveNoWait();
+// }
+//
+// private Message receive() throws JMSException {
+// if (LOGGER.isDebugEnabled()) {
+// LOGGER.debug("No Timeout set, waiting for a message until one arrives");
+// }
+//
+// return consumer.receive();
+// }
+//
+//}
diff --git a/src/main/java/org/mule/extensions/jms/internal/message/JmsxPropertiesBuilder.java b/src/main/java/org/mule/extensions/jms/internal/message/JmsxPropertiesBuilder.java
index 7b3648d9..fa848b46 100644
--- a/src/main/java/org/mule/extensions/jms/internal/message/JmsxPropertiesBuilder.java
+++ b/src/main/java/org/mule/extensions/jms/internal/message/JmsxPropertiesBuilder.java
@@ -1,26 +1,26 @@
-/*
- * Copyright 2023 Salesforce, Inc. All rights reserved.
- * The software in this package is published under the terms of the CPAL v1.0
- * license, a copy of which has been included with this distribution in the
- * LICENSE.txt file.
- */
-package org.mule.extensions.jms.internal.message;
-
-import org.mule.extensions.jms.api.message.JmsxProperties;
-
-import java.util.Map;
-
-import javax.jms.Message;
-
-/**
- * Builder that provides a simple way of creating a {@link JmsxProperties} instance based on
- * the predefined properties {@link JMSXDefinedPropertiesNames names}.
- *
- * This is useful for converting the properties {@link Map} found in the original {@link Message}
- * to their representation as {@link JmsxProperties}.
- * A default value is provided for the properties that are not set.
- *
- * @since 1.0
- */
-public final class JmsxPropertiesBuilder extends org.mule.jms.commons.api.message.JmsxProperties {
-}
+///*
+// * Copyright 2023 Salesforce, Inc. All rights reserved.
+// * The software in this package is published under the terms of the CPAL v1.0
+// * license, a copy of which has been included with this distribution in the
+// * LICENSE.txt file.
+// */
+//package org.mule.extensions.jms.internal.message;
+//
+//import org.mule.extensions.jms.api.message.JmsxProperties;
+//
+//import java.util.Map;
+//
+//import javax.jms.Message;
+//
+///**
+// * Builder that provides a simple way of creating a {@link JmsxProperties} instance based on
+// * the predefined properties {@link JMSXDefinedPropertiesNames names}.
+// *
+// * This is useful for converting the properties {@link Map} found in the original {@link Message}
+// * to their representation as {@link JmsxProperties}.
+// * A default value is provided for the properties that are not set.
+// *
+// * @since 1.0
+// */
+//public final class JmsxPropertiesBuilder extends org.mule.jms.commons.api.message.JmsxProperties {
+//}
diff --git a/src/test/munit/activemq-config.xml b/src/test/munit/activemq-config.xml
index c9ecba09..832c2326 100644
--- a/src/test/munit/activemq-config.xml
+++ b/src/test/munit/activemq-config.xml
@@ -12,6 +12,11 @@
+
+
+
+
+
@@ -29,4 +34,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/test/munit/error/listener-error.xml b/src/test/munit/error/listener-error.xml
new file mode 100644
index 00000000..3d10b651
--- /dev/null
+++ b/src/test/munit/error/listener-error.xml
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/test/munit/listener/listener-internal-rollback.xml b/src/test/munit/listener/listener-internal-rollback.xml
index bfe8462d..19628f97 100644
--- a/src/test/munit/listener/listener-internal-rollback.xml
+++ b/src/test/munit/listener/listener-internal-rollback.xml
@@ -46,6 +46,9 @@ http://www.mulesoft.org/schema/mule/munit http://www.mulesoft.org/schema/mule/mu
+
+
+
diff --git a/src/test/munit/provider/trusted-packages-test-case.xml b/src/test/munit/provider/trusted-packages-test-case.xml
new file mode 100644
index 00000000..47b3ca9d
--- /dev/null
+++ b/src/test/munit/provider/trusted-packages-test-case.xml
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1
+
+
+
+
diff --git a/src/test/munit/publishConsume/correlation-id-pattern.xml b/src/test/munit/publishConsume/correlation-id-pattern.xml
index b821a6a7..2fb3fd40 100644
--- a/src/test/munit/publishConsume/correlation-id-pattern.xml
+++ b/src/test/munit/publishConsume/correlation-id-pattern.xml
@@ -23,7 +23,19 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/test/resources/log4j2-test.xml b/src/test/resources/log4j2-test.xml
index 55f53eae..4e0216e7 100644
--- a/src/test/resources/log4j2-test.xml
+++ b/src/test/resources/log4j2-test.xml
@@ -23,11 +23,13 @@
+
+
-
+