@Test
    void verifyNewConsentDecision() {
        val consentDecision = getConsentDecision();
        assertNotNull(consentDecision);
        assertEquals("casuser", consentDecision.getPrincipal());
        assertEquals(consentDecision.getService(), RegisteredServiceTestUtils.getService().getId());
    }
This is {@link DefaultConsentDecisionBuilderTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-consent-core/src/test/java/org/apereo/cas/consent/DefaultConsentDecisionBuilderTests.java