public void testAttributeButtons() throws Exception {
WikiPageUtil.addPage(root, PathParser.parse("NormalPage"), "");
final WikiPage noButtonsPage = WikiPageUtil.addPage(root, PathParser.parse("NoButtonPage"), "");
for (final String attribute : PageData.NON_SECURITY_ATTRIBUTES) {
final PageData data = noButtonsPage.getData();
data.removeAttribute(attribute);
noButtonsPage.commit(data);
}
SimpleResponse response = requestPage("NormalPage");
assertSubString(">Edit</a>", response.getContent());