@Test
public void shouldGetDataSetColumnTypes() throws Exception {

    // given
    final String dataSetId = testClient.createDataset("dataset/dataset.csv", "testDataset");
    // when
    final Response response =
            when().get("/api/datasets/{preparationId}/columns/{columnId}/types", dataSetId, "0000");
    // then
    assertEquals(200, response.getStatusCode());
    final JsonNode rootNode = mapper.readTree(response.asInputStream());
    for (JsonNode type : rootNode) {
        assertTrue(type.has("id"));
        assertTrue(type.has("label"));
        assertTrue(type.has("frequency"));
    }
}