System.setProperty("/someuri", "roleA");
}
public void testRegularWebAccess() throws Exception
{
AuthorizationContext ac = new JBossAuthorizationContext("test",
new Subject(), new AppCallbackHandler("a","b".toCharArray()));
int result = ac.authorize(webResource, new Subject(),
SecurityTestUtil.getRoleGroup(new String[]{"roleA"}));
assertEquals(AuthorizationContext.PERMIT, result);
}