public static void main(String args[]) throws InvalidMessageIdException {
        MessageID messageID = new MessageID();
        messageID.generateSelfId();
        System.out.println(messageID + " " + ("" + messageID).length());

        System.out.println(Integer.toHexString((byte) -1));

        for (int i = 0; i < 10; i++) {
            MessageID messageID2 = new MessageID();
            messageID2.generateSelfId();

            String s = JsonSerializable.serialize(messageID2);
            System.out.println(messageID2);
            System.out.println(s);
            System.out.println(JsonSerializable.deserialize(s, MessageID.class));
        }

        System.out.println("=================");
        for (int i = 0; i < 10; i++) {
            MessageID messageID3 = new MessageID();
            messageID3.generateSelfId();
            String s = messageID3.toString();
            System.out.println(messageID3 + " " + new MessageID(s));
        }
    }