public static Map<String, String> getProperties(ByteBuffer message) {
        return MessageDecoder.decodeProperties(message.slice());
    }
@Test
    public void getPropertiesTest() {
        ByteBuffer buffer = buildMockedMessageBuffer();
        Map<String, String> properties = MessageFormatUtil.getProperties(buffer);
        Assert.assertEquals(2, properties.size());
        Assert.assertTrue(properties.containsKey(MessageConst.PROPERTY_UNIQ_CLIENT_MESSAGE_ID_KEYIDX));
        Assert.assertEquals("uk", properties.get(MessageConst.PROPERTY_UNIQ_CLIENT_MESSAGE_ID_KEYIDX));
        Assert.assertTrue(properties.containsKey("UserKey"));
        Assert.assertEquals("UserValue0", properties.get("UserKey"));
    }