diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlUsingCoreTest.java b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlUsingCoreTest.java index ad2d813d30..cd8db34c24 100644 --- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlUsingCoreTest.java +++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/ActiveMQServerControlUsingCoreTest.java @@ -255,7 +255,7 @@ public class ActiveMQServerControlUsingCoreTest extends ActiveMQServerControlTes @Override public String[] getQueueNames(String routingType) { try { - return (String[]) proxy.invokeOperation("getQueueNames", routingType); + return (String[]) proxy.invokeOperation(String.class, "getQueueNames", routingType); } catch (Exception e) { e.printStackTrace(); }