IniSecurityManagerFactory factory = new IniSecurityManagerFactory(ini);
SecurityManager sm = factory.getInstance();
//try to log-in:
Subject subject = new Subject.Builder(sm).buildSubject();
subject.login(new UsernamePasswordToken("admin", "admin"));
Session session = subject.getSession();
session.setAttribute("hello", "world");
//session should have been started, and a cache is in use. Assert that the SessionDAO is still using
//the cache instances provided by our custom CacheManager and not the Default MemoryConstrainedCacheManager