tester.assertErrorMessages(new String[0]);
tester.assertRenderedPage(DataAccessRulePage.class);
dao.reload();
assertEquals(1, dao.getRules().size());
DataAccessRule rule = dao.getRules().get(0);
assertEquals("cite", rule.getWorkspace());
assertEquals("*", rule.getLayer());
assertEquals(AccessMode.WRITE, rule.getAccessMode());
// // palette and form submit in tester, just does not work... :-(
// assertEquals(0, rule.getRoles());
// assertEquals("*", rule.getRoles().iterator().next());
}