protected void verifyRepositoryAction(final String actualPrincipalId,
                                          final Map<String, List<Object>> profileAttributes) throws Throwable {
        val credential = getCredential(actualPrincipalId);
        val context = getRequestContext(actualPrincipalId, profileAttributes, credential);

        assertTrue(getAcceptableUsagePolicyRepository().verify(context).isDenied());
        assertTrue(getAcceptableUsagePolicyRepository().submit(context));
        if (hasLiveUpdates()) {
            assertTrue(getAcceptableUsagePolicyRepository().verify(context).isAccepted());
        }
    }
Repository can update the state of the AUP acceptance without reloading the principal. Mostly for testing purposes.

@return live updates are possible.
support/cas-server-support-aup-webflow/src/test/java/org/apereo/cas/aup/BaseAcceptableUsagePolicyRepositoryTests.java