@Test
public void shouldManageSpecificTextEnclosureChar() throws Exception {

    // given (text enclosing separator is ¤ so that " in original CSV are ignored)
    InputStream inputStream = this.getClass().getResourceAsStream("with_quote_in_text.csv");
    DataSetMetadata datasetMetadata = getSimpleDataSetMetadata("City", "code", "Description");
    datasetMetadata.getContent().addParameter(SEPARATOR_PARAMETER, ",");
    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("with_quote_in_text.json"), UTF_8);
    JSONAssert.assertEquals(expected, actual, false);
}