ArticleParser parser = new ArticleParser(Language.EN);
@Test
public void testParsing() throws IOException {
Article a = new Article();
String mediawiki = IOUtils.getFileAsUTF8String("./src/test/resources/en/article.txt");
parser.parse(a, mediawiki);
assertTrue("Wrong parsed text",a.getCleanText().trim().startsWith("Albedo (), or reflection coefficient, is the diffuse reflectivity or reflecting power of a surface."));
assertEquals(5, a.getCategories().size());
assertEquals(7,a.getSections().size());
assertEquals(74,a.getLinks().size());
}