public static String getOffsetId(ByteBuffer message) {
        return UtilAll.bytes2string(getOffsetIdBuffer(message).array());
    }
@Test
    public void getOffsetIdTest() {
        ByteBuffer buffer = buildMockedMessageBuffer();
        InetSocketAddress inetSocketAddress = new InetSocketAddress("127.0.0.1", 65535);
        ByteBuffer address = ByteBuffer.allocate(Long.BYTES);
        address.put(inetSocketAddress.getAddress().getAddress(), 0, 4);
        address.putInt(inetSocketAddress.getPort());
        address.flip();
        for (int i = 0; i < address.remaining(); i++) {
            buffer.put(MessageFormatUtil.STORE_HOST_POSITION + i, address.get(i));
        }
        String excepted = MessageDecoder.createMessageId(
            ByteBuffer.allocate(MessageFormatUtil.MSG_ID_LENGTH), address, 7);
        String offsetId = MessageFormatUtil.getOffsetId(buffer);
        Assert.assertEquals(excepted, offsetId);
    }