@Test
public void TDP_1259() throws IOException {

    try (InputStream inputStream = this.getClass().getResourceAsStream("tdp-1259.csv")) {
        // We do know the format and therefore we go directly to the CSV schema guessing
        SchemaParser.Request request = getRequest(inputStream, "#1");
        request.getMetadata().setEncoding("UTF-8");
        csvSchemaParser.parse(request);
        final Map<String, String> parameters = request.getMetadata().getContent().getParameters();
        char actual = parameters.get(CSVFormatFamily.SEPARATOR_PARAMETER).charAt(0);
        List<String> header = csvFormatUtils.retrieveHeader(parameters);
        assertEquals(';', actual);
        List<String> expected = Arrays.asList("id", "first_name", "last_name", "email", "job_title", "company",
                "city", "state", "country", "date", "campaign_id", "lead_score", "registration", "city", "birth",
                "nbCommands", "id", "first_name", "last_name", "email", "job_title", "company", "city", "state",
                "country", "date", "campaign_id", "lead_score", "registration", "city", "birth", "nbCommands");
        assertEquals(expected, header);
    }
}