resource.setPrincipal(new SimplePrincipal("AuthenticatedPrincipal"));
resource.setEjbMethod(DummyClass.class.getDeclaredMethods()[0]);
resource.setEjbName(DummyClass.class.getCanonicalName());
resource.setEjbMethodRoles( getRoleGroup(new String[] {AnybodyPrincipal.ANYBODY}) );
int res = epmd.authorize(resource, new Subject(), getRoleGroup(new String[]{"baduser"}));
assertEquals(AuthorizationContext.PERMIT, res);
}
/**
* Test that in the absence of method roles sent, the authorization fails