} else {
moveTo = "queue://" + ((Queue) getDestination()).getQueueName();
}
LOG.debug("Moving " + messageCount + " messages from ActiveMQ.DLQ to " + moveTo);
dlqView.moveMatchingMessagesTo("", moveTo);
assertTrue("DLQ was not emptied as expected", Wait.waitFor(new Wait.Condition() {
public boolean isSatisified() throws Exception {
return dlqView.getQueueSize() == 0;
}