@Test
public void testAnalysisWithHeaderParameter() {

    final DataSetMetadata metadata = metadataBuilder
            .metadata() //
            .id(UUID.randomUUID().toString()) //
            .parameter(CSVFormatFamily.HEADER_NB_LINES_PARAMETER, "56")
            .build();
    createCsvDataSet(metadata, "5_lines.csv");
    contentAnalysis.analyze(metadata.getId());
    assertThat(dataSetMetadataRepository.get(metadata.getId()), notNullValue());
    final DataSetMetadata actual = dataSetMetadataRepository.get(metadata.getId());
    assertThat(actual.getContent().getNbLinesInHeader(), is(56));
    assertThat(actual.getContent().getNbLinesInFooter(), is(0));
    assertThat(actual.getLifecycle().contentIndexed(), is(true));
}