@Test
public void testCSVAnalysis() {

    String id = UUID.randomUUID().toString();
    final DataSetMetadata metadata = metadataBuilder.metadata().id(id).build();
    dataSetMetadataRepository.save(metadata);
    contentStore.storeAsRaw(metadata, DataSetServiceTest.class.getResourceAsStream("../avengers.csv"));
    formatAnalysis.analyze(id);
    final DataSetMetadata actual = dataSetMetadataRepository.get(id);
    assertThat(actual, notNullValue());
    assertThat(actual.getContent().getFormatFamilyId(), is(CSVFormatFamily.BEAN_ID));
    assertThat(actual.getContent().getMediaType(), is("text/csv"));
    assertThat(actual.getContent().getParameters().get("SEPARATOR"), is(";"));
}