TwitterComponent comp = context.getComponent("twitter", TwitterComponent.class);
EndpointConfiguration conf = comp.createConfiguration("twitter:search?keywords=camel");
assertEquals("camel", conf.getParameter("keywords"));
ComponentConfiguration compConf = comp.createComponentConfiguration();
String json = compConf.createParameterJsonSchema();
assertNotNull(json);
assertTrue(json.contains("\"accessToken\": { \"type\": \"java.lang.String\" }"));
assertTrue(json.contains("\"consumerKey\": { \"type\": \"java.lang.String\" }"));
}