EndpointConfiguration conf = comp.createConfiguration("weather:foo?location=Madrid,Spain");
assertEquals("Madrid,Spain", conf.getParameter("location"));
ComponentConfiguration compConf = comp.createComponentConfiguration();
String json = compConf.createParameterJsonSchema();
assertNotNull(json);
assertTrue(json.contains("\"lat\": { \"type\": \"string\""));
assertTrue(json.contains("\"location\": { \"type\": \"string\""));
assertTrue(json.contains("\"mode\": { \"type\": \"string\", \"javaType\": \"org.apache.camel.component.weather.WeatherMode\", \"enum\": [ \"HTML\", \"JSON\", \"XML\" ]"));