// Initialize the weblounge admin
// WebloungeAdminImpl.init("admin", "weblounge".getBytes(),
// "admin@weblounge.org");
// Create the security context
SecurityContextImpl context = new PageSecurityContext();
context.init(path, config);
// Deny all
context.allow(publish, editor);
// Test (publish, editor) - expected: success
if (!context.check(publish, editor)) {
fail("Check for permission " + publish + " and role " + editor + " failed while it shouldn't");
}
}