@Test
@Ignore("Assumes network connectivity")
public void testParseConfigWithoutIndicatorKey() throws Exception {

    PxwebIndicatorsParser parser = getParser("config2folderstruct_tk.json");
    PropertyUtil.addProperty("oskari.locales", "en, fi, sv", true);
    List<StatisticalIndicator> indicators = parser.parse(getLayers());
    int expectedCount = 2;
    String expectedName = "Municipal key figures 1987-2018";
    String expectedId = "kuntien_avainluvut_2019_aikasarja.px";
    assertEquals("Should find " + expectedCount + " indicators", expectedCount, indicators.size());
    assertEquals("Should find " + expectedName + " as first indicator name", expectedName, indicators.get(0).getName(PropertyUtil.getDefaultLanguage()));
    assertEquals("Should find " + expectedId + " as first indicator id", expectedId, indicators.get(0).getId());
    assertEquals("Should find two dimensions", 2, indicators.get(0).getDataModel().getDimensions().size());
    assertEquals("Should find dimension 'Vuosi'", "Year", indicators.get(0).getDataModel().getDimension("Vuosi").getName());
    // config.indicatorKey == Tiedot is parsed as dimension as well
    assertEquals("Should find dimension 'Information'", "Information", indicators.get(0).getDataModel().getDimension("Tiedot").getName());
    PropertyUtil.clearProperties();
}