log.info("Creating "+count+" threads doing "+iterations+" iterations");
PolicyContext.registerHandler(SecurityConstants.SUBJECT_CONTEXT_KEY,
new SubjectPolicyContextHandler(), false);
AuthorizationManager am = new JBossAuthorizationManager("testIdentity");
JaasSecurityManager secMgr = new JaasSecurityManager("testIdentity", new SecurityAssociationHandler());
TimedCachePolicy cache = new TimedCachePolicy(3, false, 100);
cache.create();
cache.start();
secMgr.setCachePolicy(cache);
Thread[] testThreads = new Thread[count];
AuthTester[] testers = new AuthTester[count];
for(int t = 0; t < count; t ++)
{