//SecurityAssociation.setServer();
int count = Integer.getInteger("jbosstest.threadcount", 10).intValue();
int iterations = Integer.getInteger("jbosstest.iterationcount", 5000).intValue();
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();