@Test
public void exportDataSet() throws Exception {

    // given
    String dataSetId = createDataset("input_dataset.csv", "my dataset", "text/csv");
    // when
    String exportContent = given() //
            .queryParam("name", "ds_export")
            .expect()
            .statusCode(200)
            .log()
            .ifError()//
            .when() //
            .get("/export/dataset/{id}/{format}", dataSetId, "JSON") //
            .asString();
    // then
    String expectedContent =
            IOUtils.toString(this.getClass().getResourceAsStream("no_action_expected.json"), UTF_8);
    JSONAssert.assertEquals(expectedContent, exportContent, false);
}