WFSLayerOptions { public void setOptions (JSONObject opts) { options = opts; } WFSLayerOptions();  WFSLayerOptions(JSONObject wfsOptions); JSONObject getOptions(); void setOptions(JSONObject opts); void injectBaseLayerOptions(JSONObject baseLayerOptions); String getLabelProperty(); void setDefaultFeatureStyle(JSONObject style); JSONObject getDefaultFeatureStyle(); JSONObject getDefaultStyle(); JSONObject getNamedStyle(String name); void setNamedStyle(String name, JSONObject style); void setProperty(String key, Object value); JSONObject getStyles(); void setRenderMode(String renderMode); String getRenderMode(); int getClusteringDistance(); void setClusteringDistance(int cluster); static JSONObject getDefaultOskariStyle(); void injectDefaultTextStyle(String labelProperty);  }
@Test public void testSetOptions () throws JSONException { JSONObject input = new JSONObject(options); WFSLayerOptions opts = new WFSLayerOptions(input); assertEquals("mvt", opts.getRenderMode()); JSONObject style = opts.getDefaultFeatureStyle(); assertEquals(3, style.getJSONObject("fill").getJSONObject("area").getInt("pattern")); }