// this xml role
PrincipalCollection jcohen = new SimplePrincipalCollection("jcohen", MockRealm.NAME);
try {
securitySystem.checkPermission(jcohen, "permissionOne:invalid");
Assert.fail("Expected AuthorizationException");
}
catch (AuthorizationException e) {
// expected
}