@Test
public void should_use_custom_import_parameters_double_quote() throws Exception {

    // given (text escape char is |)
    InputStream inputStream = this.getClass().getResourceAsStream("test_4579_doublequote_import.csv");
    DataSetMetadata datasetMetadata = getSimpleDataSetMetadata("City", "code", "Description");
    datasetMetadata.getContent().addParameter(SEPARATOR_PARAMETER, ",");
    datasetMetadata.getContent().addParameter(ESCAPE_CHAR, "");
    datasetMetadata.getContent().addParameter(TEXT_ENCLOSURE_CHAR, "");
    // when
    InputStream input = serializer.serialize(inputStream, datasetMetadata, -1);
    String actual = IOUtils.toString(input, UTF_8);
    // then
    final String expected =
            IOUtils.toString(this.getClass().getResourceAsStream("test_4579_doublequote_import.json"), UTF_8);
    JSONAssert.assertEquals(expected, actual, false);
}