@Test
    void verifyConsentDecisionIsStored() throws Throwable {
        val decision = BUILDER.build(SVC, REG_SVC, USER_CN, ATTR);
        assertNotNull(this.repository.storeConsentDecision(decision));
        val r = getConnection().search(USER_DN, SearchScope.SUB, DEF_FILTER, ATTR_NAME);
        assertTrue(r.getEntryCount() > 0);
        val d = MAPPER.readValue(r.getSearchEntry(USER_DN).getAttributeValue(ATTR_NAME), ConsentDecision.class);
        assertNotNull(d);
        assertEquals(USER_CN, d.getPrincipal());
    }
This is {@link BaseLdapConsentRepositoryTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-consent-ldap/src/test/java/org/apereo/cas/consent/BaseLdapConsentRepositoryTests.java