/** data set can create import table */ public void dataSetTable() { String attributeCode = "A"; String indicatorCode = "I"; ObjectNode node = builder.buildDataSetNode(dataSetId, name, description, owner, lastChange); node.put( "attributes", new ObjectMapper() .createArrayNode() .add(builder.buildAttributeNode(id, name, attributeCode, "String"))); node.put( "indicators", new ObjectMapper() .createArrayNode() .add(builder.buildIndicatorNode(id, name, indicatorCode, formula, "data_indicator"))); DataTable table = new DataSetImpl(service, node).createDataTable(); assertEquals( table.getColumns(), Arrays.asList(new DataColumn(attributeCode), new DataColumn(indicatorCode))); }