@Test
public void getWithFilter() throws Exception {

    final String dataSetId =
            createCSVDataSet(this.getClass().getResourceAsStream("../avengers.csv"), "dataset with filter");
    InputStream expected = this.getClass().getResourceAsStream("../avengers_expected_filtered.json");
    String datasetContent = given()
            .queryParam("metadata", "true")
            .queryParam("filter", "(0004 = 'New York City')")
            .get("/datasets/{id}/content", dataSetId)
            .asString();
    assertThat(datasetContent, sameJSONAsFile(expected));
}