@Test
public void testDataSetCreate() throws Exception {

    // given
    final String dataSetId = testClient.createDataset("dataset/dataset.csv", "tagada");
    final InputStream expected =
            PreparationAPITest.class.getResourceAsStream("dataset/expected_dataset_with_metadata.json");
    // when
    Response response = when().get("/api/datasets/{id}?metadata=true&columns=false", dataSetId);
    // then
    response.then().contentType(ContentType.JSON);
    final String contentAsString = response.asString();
    assertThat(contentAsString, sameJSONAsFile(expected));
}