private static void verifyAction(final AcceptableUsagePolicyProperties properties) throws Throwable {
            val context = MockRequestContext.create();

            val repo = getRepositoryInstance(properties);

            WebUtils.putAuthentication(CoreAuthenticationTestUtils.getAuthentication(), context);
            WebUtils.putTicketGrantingTicketInScopes(context, "TGT-12345");

            assertTrue(repo.verify(context).isDenied());
            assertTrue(repo.submit(context));
            assertTrue(repo.verify(context).isAccepted());
        }
This is {@link DefaultAcceptableUsagePolicyRepositoryTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-aup-webflow/src/test/java/org/apereo/cas/aup/DefaultAcceptableUsagePolicyRepositoryTests.java