public void CoreUserRoledRuleTest()
        {
            PermissionRules uut = new PermissionRules();

            PermissionRules.IsAuthorizedMethod del = new PermissionRules.IsAuthorizedMethod(uut.IsUserRoleAuthorizedRule);

            Dictionary <string, object> contextPropertyBag = uut.PrepareStateForRoleRule(TestRoles[0]);

            bool?isAuthorized = del.Invoke(TestIdentity, TestRoles, null, contextPropertyBag);

            Assert.IsTrue(isAuthorized.HasValue);
            Assert.IsTrue(isAuthorized.Value);

            contextPropertyBag = uut.PrepareStateForRoleRule("BOGUS");

            isAuthorized = del.Invoke(TestIdentity, TestRoles, null, contextPropertyBag);
            Assert.IsTrue(isAuthorized.HasValue);
            Assert.IsFalse(isAuthorized.Value);
        }