@Test
public void should_compile_parameters() {

    // given
    ReflectionTestUtils.setField(csvFormatUtils, "defaultTextEnclosure", "\"");
    ReflectionTestUtils.setField(csvFormatUtils, "defaultEscapeChar", "\u0000");
    final Map<String, String> entryParameters = initMapParam();
    final Separator separator = new Separator("|".charAt(0));
    // when
    csvFormatUtils.compileParameterProperties(separator, entryParameters);
    // then
    assertEquals(5, entryParameters.size());
    assertEquals("\u0000", entryParameters.get(ESCAPE_CHAR));
    assertEquals("\"", entryParameters.get(TEXT_ENCLOSURE_CHAR));
    assertEquals("|", entryParameters.get(SEPARATOR_PARAMETER));
    assertEquals("0", entryParameters.get(HEADER_NB_LINES_PARAMETER));
    assertEquals(null, entryParameters.get(HEADER_COLUMNS_PARAMETER));
}