public static String toFilePath(MessageQueue mq) {
        return String.format("%s/%s/%s", mq.getBrokerName(), mq.getTopic(), mq.getQueueId());
    }
@Test
    public void filePathTest() {
        MessageQueue mq = new MessageQueue();
        mq.setBrokerName("BrokerName");
        mq.setTopic("topicName");
        mq.setQueueId(2);
        Assert.assertEquals("BrokerName/topicName/2", MessageStoreUtil.toFilePath(mq));
    }