@Test
    public void testDeSeSchema() {
        final CsvRowDataDeserializationSchema expectedDeSer =
                new CsvRowDataDeserializationSchema.Builder(
                        testFormatInfo, testTypeInformation)
                                .setCharset("UTF-8")
                                .setFieldDelimiter(';')
                                .setQuoteCharacter('\'')
                                .setEscapeCharacter('\\')
                                .setNullLiteral("n/a")
                                .build();
        final Map<String, String> options = getAllOptions();
        DeserializationSchema<RowData> actualDeser = createDeserializationSchema(options);
        assertEquals(expectedDeSer, actualDeser);

        final CsvRowDataSerializationSchema expectedSer =
                new CsvRowDataSerializationSchema.Builder(testFormatInfo)
                        .setCharset("UTF-8")
                        .setFieldDelimiter(';')
                        .setQuoteCharacter('\'')
                        .setEscapeCharacter('\\')
                        .setNullLiteral("n/a")
                        .build();
        SerializationSchema<RowData> actualSer = createSerializationSchema(options);
        assertEquals(expectedSer, actualSer);
    }
The unit test for csv format factory.
inlong-sort/sort-formats/format-rowdata/format-rowdata-csv/src/test/java/org/apache/inlong/sort/formats/csv/CsvFormatFactoryTest.java