void () { ExpirableTokenProvider tokenProvider = new ExpirableTokenProvider(); Expirable token1 = tokenProvider.createExpirable(); assertFalse(token1.isExpired()); tokenProvider.invalidateAll(); assertTrue(token1.isExpired()); Expirable token2 = tokenProvider.createExpirable(); assertFalse(token2.isExpired()); }