@Deprecated
    public Collection<MessageQueue> queuesWithNamespace(Collection<MessageQueue> queues) {
        if (StringUtils.isEmpty(this.getNamespace())) {
            return queues;
        }
        Iterator<MessageQueue> iter = queues.iterator();
        while (iter.hasNext()) {
            MessageQueue queue = iter.next();
            queue.setTopic(withNamespace(queue.getTopic()));
        }
        return queues;
    }
@Test
    public void testQueuesWithNamespace() {
        MessageQueue messageQueue = new MessageQueue();
        messageQueue.setTopic("defaultTopic");
        Collection<MessageQueue> messageQueues = clientConfig.queuesWithNamespace(Collections.singleton(messageQueue));
        assertTrue(messageQueues.contains(messageQueue));
        assertEquals("lmq%defaultTopic", messageQueues.iterator().next().getTopic());
    }