@Test
    void verifyConsentDecisionIsDeleted() throws Throwable {
        val decision = BUILDER.build(SVC, REG_SVC, USER_CN, ATTR);
        decision.setId(1);
        val mod = new Modification(ModificationType.ADD, ATTR_NAME, MAPPER.writeValueAsString(decision));
        assertEquals(ResultCode.SUCCESS, getConnection().modify(USER_DN, mod).getResultCode());
        val decision2 = BUILDER.build(SVC2, REG_SVC2, USER_CN, ATTR);
        decision2.setId(2);
        val mod2 = new Modification(ModificationType.ADD, ATTR_NAME, MAPPER.writeValueAsString(decision2));
        assertEquals(ResultCode.SUCCESS, getConnection().modify(USER_DN, mod2).getResultCode());
        val decision3 = BUILDER.build(SVC, REG_SVC, USER2_CN, ATTR);
        decision3.setId(3);
        val mod3 = new Modification(ModificationType.ADD, ATTR_NAME, MAPPER.writeValueAsString(decision3));
        assertEquals(ResultCode.SUCCESS, getConnection().modify(USER2_DN, mod3).getResultCode());

        assertTrue(this.repository.deleteConsentDecision(decision2.getId(), USER_CN));

        val r = getConnection().search(USER_DN, SearchScope.SUB, DEF_FILTER, ATTR_NAME);
        assertTrue(r.getEntryCount() > 0);
        assertEquals(1, r.getSearchEntry(USER_DN).getAttributeValues(ATTR_NAME).length);
    }
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