public void ExplicitlyExpirePrincipal() { ISecurityCacheProvider securityCache = SecurityCacheFactory.GetSecurityCacheProvider(defaultInstance); Assert.IsNotNull(securityCache); IToken token = securityCache.SavePrincipal(principal); Assert.IsNotNull(token); Assert.IsNotNull(token.Value); securityCache.ExpirePrincipal(token); IPrincipal cachedPrincipal = securityCache.GetPrincipal(token); Assert.IsNull(cachedPrincipal); }