@Test
public void testParsedPage(){

       String title = "Wikipedia API";
       Page p = null;
       try {
           p = wiki.getPage(title);
       } catch (WikiApiException e) {
           e.printStackTrace();
           fail("A WikiApiException occurred while getting the page " + title);
       }
       String text = "Wikipedia API ist die wichtigste Software überhaupt." + LF +
       	"Wikipedia API. Nicht zu übertreffen. Unglaublich http://www.ukp.tu-darmstadt.de en:Wikipedia API";
       MediaWikiParserFactory pf = new MediaWikiParserFactory(Language.english);
       MediaWikiParser parser = pf.createParser();
	ParsedPage pp = parser.parse(p.getText());
       assertNotNull(pp);
       int i=0;
       for (Link link : pp.getSection(0).getLinks()) {
           if (i==0) {
               assertEquals("Software", link.getText());
           }
           else if (i==1) {
               assertEquals("Wikipedia API", link.getText());
               assertEquals("JWPL", link.getTarget());
           }
           i++;
       }
       String parsedPageText = pp.getText();
       assertNotNull(parsedPageText);
       assertEquals(text, parsedPageText);
}