// copy messages into another queue
_queue.copyMessagesToAnotherQueue(0, messageNumber, anotherQueueName, txn);
// commit transaction
txn.commit();
// get messages on another queue
List<QueueEntry> entries = queue.getMessagesOnTheQueue();
// assert another queue entries