cmap.put(ResourceKeys.ROLEREF_PERM_CHECK, Boolean.TRUE);
cmap.put(ResourceKeys.ROLENAME, "roleLink");
AuthorizationContext ac = new JBossAuthorizationContext("test",
new AppCallbackHandler("a","b".toCharArray()));
int result = ac.authorize(ejbResource, new Subject(), principalRole);
assertEquals(AuthorizationContext.PERMIT, result);
}
/**
* Dummy Class just to get a Method instance