private static void testWikipediaENAPI(String title) throws Exception {
String articleAddress = "http://en.wikipedia.org/w/api.php?action=query&titles=" + Encoder.encodeTitleToUrl(title, true)
+ "&prop=revisions&rvprop=content&format=xml";
String articleWikiContent = loadRAWContent(articleAddress);
User wikiUser = new User("", "", "http://en.wikipedia.org/w/api.php");
wikiUser.login();
// set up a simple cache for this example. HashMap is not usable for
// production! Use something like http://ehcache.org for production!
Map<String, String> contentCache = new HashMap<>(2000);
APIWikiModelInMemory wikiModel = new APIWikiModelInMemory(wikiUser, Locale.ENGLISH, "${image}", "${title}", contentCache);