QueueControl queueControl = createManagementControl(address, queue);
Assert.assertEquals(1, queueControl.getMessageCount());
// moved all messages to otherQueue
int movedMessagesCount = queueControl.moveMessages(null, otherQueue.toString());
Assert.assertEquals(1, movedMessagesCount);
Assert.assertEquals(0, queueControl.getMessageCount());
// check there is no message to consume from queue
ManagementTestBase.consumeMessages(0, session, queue);