@Test
public void should_detect_comma_separator_when_no_separator_detected() throws IOException {

    char[] chars = new char[5];
    for (int i = 0; i < 5; i++) {
        chars[i] = 'A';
    }
    try (InputStream inputStream = IOUtils.toInputStream(new String(chars))) {
        // We do know the format and therefore we go directly to the CSV schema guessing
        SchemaParser.Request request = getRequest(inputStream, "#12");
        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);
        assertEquals(',', actual);
    }
}