public static MessageWrapper convert(Message message) {
        MessageWrapper wrapper = new MessageWrapper();
        wrapper.setResponseClass(message.getClass());
        wrapper.setMessageType(message.getMessageType());
        List<Map<String, Object>> messageMapList = new ArrayList<>();
        List<Message> messages = message.getMessages();
        messages.forEach(each -> {
            String eachVal = JSONUtil.toJSONString(each);
            Map mapObj = JSONUtil.parseObject(eachVal, Map.class);
            messageMapList.add(mapObj);
        });
        wrapper.setContentParams(messageMapList);
        return wrapper;
    }
@Test
    public void testMessageWrapperConvertException() {
        Assertions.assertThrows(Exception.class, () -> {
            Map<String, Object> data1 = new HashMap<>();
            data1.put("key1", "value1");
            data1.put("key2", 123);
            Map<String, Object> data2 = new HashMap<>();
            data2.put("key3", true);
            data2.put("key4", 3.14);
            List<Map<String, Object>> contentParams = Arrays.asList(data1, data2);
            Class responseClass = String.class;
            MessageTypeEnum messageType = MessageTypeEnum.DEFAULT;
            MessageWrapper messageWrapper = new MessageWrapper(contentParams, responseClass, messageType);
            MessageConvert.convert(messageWrapper);
        });
    }