@Test
public void should_guess_separator_with_ISO_8859_1_encoded_file() throws IOException {

    try (InputStream inputStream = this.getClass().getResourceAsStream("iso-8859-1.csv")) {
        // We do know the format and therefore we go directly to the CSV schema guessing
        SchemaParser.Request request = getRequest(inputStream, "#3");
        request.getMetadata().setEncoding("ISO-8859-1");
        csvSchemaParser.parse(request);
        final Map<String, String> parameters = request.getMetadata().getContent().getParameters();
        char actual = parameters.get(CSVFormatFamily.SEPARATOR_PARAMETER).charAt(0);
        assertEquals(';', actual);
    }
}