public static String objectToString(Serializable obj) {
        if (obj != null) {
            return Base64.encodeBase64String(serialize(obj));
        }
        return null;
    }
@Test
    public void testObjectToString() {

        HashMap<String, String> data = new HashMap<>();
        data.put("key1", "value1");
        data.put("seatunnelTest", "apache SeaTunnel");
        data.put("中 文", "Apache Asia");
        String configStr = SerializationUtils.objectToString(data);
        Assertions.assertNotNull(configStr);

        HashMap<String, String> dataAfter = SerializationUtils.stringToObject(configStr);

        Assertions.assertEquals(dataAfter, data);

        data.put("key2", "");
        Assertions.assertNotEquals(dataAfter, data);
    }