@Test
public void shouldGetDataSetColumnTypes() throws Exception {

    // given
    final String dataSetId =
            createCSVDataSet(this.getClass().getResourceAsStream("../communes_france.csv"), "cities");
    // when
    final Response response = when().get("/datasets/{dataSetId}/columns/{columnId}/types", dataSetId, "0000");
    // then
    /*
     * expected response array --> first element
     *  {
     * "id":"FR_COMMUNE",
     * "label":"FR Commune",
     * "frequency":99.19429
     *  }
     */
    Assert.assertEquals(200, response.getStatusCode());
    final JsonNode rootNode = mapper.readTree(response.asInputStream());
    Assert.assertEquals(6, rootNode.size());
    for (JsonNode type : rootNode) {
        assertTrue(type.has("id"));
        assertTrue(type.has("label"));
        assertTrue(type.has("frequency"));
    }
}