@Test
    void verifyConsentDecisionIsNotMistaken() 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 d = this.repository.findConsentDecision(SVC, REG_SVC, CoreAuthenticationTestUtils.getAuthentication("unknownUser"));
        assertNull(d);

        val d2 = this.repository.findConsentDecision(RegisteredServiceTestUtils.getService2(),
            REG_SVC, CoreAuthenticationTestUtils.getAuthentication(USER_CN));
        assertNull(d2);
    }
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