PolicyRegistration policyRegistration = new JBossPolicyRegistration();
registerPolicy(policyRegistration);
EJBResource er = getEJBResource(policyRegistration);
er.setPolicyContextID(contextID);
int res = pc.authorize(er, new Subject(), getRoleGroup());
assertEquals(AuthorizationContext.PERMIT, res);
}
public void testInvalidEJBPolicyContextHandler() throws Exception
{