@Test
public void testGetDatasetFieldNames() throws InterruptedException, HttpException, URISyntaxException, IOException, SodaError {
//UserPreferences userPrefs = new UserPreferencesJava();
//System.out.println(IntegrationUtility.getFieldNamesString(ddl, "6qkn-8xvw"));
final SodaDdl ddl = createSodaDdl();
String datasetFieldNamesString = DatasetUtils.getFieldNamesString(DOMAIN, UNITTEST_DATASET_ID);
TestCase.assertEquals("\"id\",\"name\",\"another_name\",\"date\"", datasetFieldNamesString);
Dataset datasetInfo = (Dataset) ddl.loadDatasetInfo(UNITTEST_DATASET_ID);
String[] datasetFieldNames = DatasetUtils.getFieldNamesArray(datasetInfo);
TestCase.assertEquals("id", datasetFieldNames[0]);
TestCase.assertEquals("name", datasetFieldNames[1]);
TestCase.assertEquals("another_name", datasetFieldNames[2]);
}