@Test
public void testDataSetFilter() throws Exception {

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