public void previewWithProgrammingRights()
{
WikiEditPage wikiEditPage = WikiEditPage.gotoPage(getTestClassName(), getTestMethodName());
wikiEditPage.setContent("{{velocity}}$xwiki.hasAccessLevel('programming')"
+ " $tdoc.author $tdoc.contentAuthor $tdoc.creator{{/velocity}}");
PreviewEditPage previewPage = wikiEditPage.clickPreview();
assertEquals("true XWiki.Admin XWiki.Admin XWiki.Admin", previewPage.getContent());
}
/**
* @see "XWIKI-9527: Sheets are not applied on preview action if the document is new"