public MessageQueue buildMessageQueue(MessageExt messageExt, String brokerName) {
        Broker broker = Broker.getDefaultInstance();
        if (!StringUtils.isEmpty(brokerName)) {
            broker = Broker.newBuilder()
                .setName(brokerName)
                .setId(0)
                .build();
        }
        return MessageQueue.newBuilder()
            .setId(messageExt.getQueueId())
            .setTopic(Resource.newBuilder()
                .setName(NamespaceUtil.withoutNamespace(messageExt.getTopic()))
                .setResourceNamespace(NamespaceUtil.getNamespaceFromResource(messageExt.getTopic()))
                .build())
            .setBroker(broker)
            .build();
    }
@Test
    public void testBuildMessageQueue() {
        String topic = "topic";
        String brokerName = "brokerName";
        int queueId = 1;
        MessageExt messageExt = new MessageExt();
        messageExt.setQueueId(queueId);
        messageExt.setTopic(topic);

        MessageQueue messageQueue = GrpcConverter.getInstance().buildMessageQueue(messageExt, brokerName);
        assertThat(messageQueue.getTopic().getName()).isEqualTo(topic);
        assertThat(messageQueue.getBroker().getName()).isEqualTo(brokerName);
        assertThat(messageQueue.getId()).isEqualTo(queueId);
    }