SecurityService ss = TurbineSecurity.getService();
User admin = ss.getUser("admin");
assertNotNull(admin);
AccessControlList acl = ss.getACL(admin);
assertNotNull(acl);
assertFalse(acl.hasRole("Admin", "global"));
assertTrue(acl.hasRole("Admin", "Turbine"));
assertFalse(acl.hasRole("User", "global"));
assertFalse(acl.hasRole("User", "Turbine"));
assertFalse(acl.hasPermission("Admin", "global"));
assertTrue(acl.hasPermission("Admin", "Turbine"));
assertFalse(acl.hasPermission("Login", "global"));
assertFalse(acl.hasPermission("Login", "Turbine"));
assertFalse(acl.hasPermission("Application", "global"));
assertFalse(acl.hasPermission("Application", "Turbine"));
}