@Test
    void verifyPolicyTermsFails() throws Throwable {
        val context = MockRequestContext.create();
        val credential = CoreAuthenticationTestUtils.getCredentialsWithSameUsernameAndPassword("casuser");
        val tgt = new MockTicketGrantingTicket(credential.getId(), credential, Map.of());
        ticketRegistry.addTicket(tgt);
        assertFalse(acceptableUsagePolicyRepository.fetchPolicy(context).isPresent());
    }
This is {@link GroovyAcceptableUsagePolicyRepositoryTests}.

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