assertEquals("Content of loaded wiki page is not the same after loading from filesystem", WIKI_CONTENT, page1.getContent());
page1.setContent(WIKI_CONTENT+"\nThis is a new line");
wikiMgr.saveWikiPage(ores, page1, true, wiki);
List diffs = wiki.getDiff(page1, page1.getVersion() -1, page1.getVersion());
ChangeInfo change = (ChangeInfo)diffs.get(0);
assertEquals("INSERT", change.getType());
assertEquals("This is a new line", change.getLines()[0]);
//remove page and reloading should result in error page
wiki.removePage(page1);
wikiMgr.deleteWikiPage(ores, page1);
wiki = wikiMgr.getOrLoadWiki(ores);