@Test
public void testASDIParsing() throws Exception {

    WMTSCapabilities caps = WMTSCapabilitiesParser.parseCapabilities(capabilitiesInput_ASDI);
    Set<String> crss = new HashSet<>();
    crss.add("EPSG:3575");
    OskariLayer layer = new OskariLayer();
    layer.setId(1);
    layer.setName("arcticsdi_wmts");
    JSONObject options = layer.getOptions();
    options.put("format", "REST");
    assertTrue(options.has("format"));
    OskariLayerCapabilitiesHelper.setPropertiesFromCapabilitiesWMTS(caps, layer, crss);
    assertFalse("'format' value should have been removed since the layer doesn't support RESTful WMTS", options.has("format"));
}