@Test
public void testDataSetGetMetadata() throws Exception {

    // given
    final String dataSetId = testClient.createDataset("dataset/dataset.csv", "test_metadata");
    // when
    final String content = when().get("/api/datasets/{id}/metadata", dataSetId).asString();
    // then
    final InputStream expected =
            PreparationAPITest.class.getResourceAsStream("dataset/expected_dataset_columns.json");
    assertThat(content, sameJSONAsFile(expected));
}