@Test
    void verifyNoConsent() throws Throwable {
        val ldap = casProperties.getConsent().getLdap();
        val factory = mock(ConnectionFactory.class);
        val repo = new LdapConsentRepository(new LdapConnectionFactory(factory), ldap);
        assertTrue(repo.findConsentDecisions().isEmpty());

        val decision = BUILDER.build(SVC, REG_SVC, "unknown", ATTR);
        assertNull(repo.storeConsentDecision(decision));

    }
Unit tests for {@link LdapConsentRepository} class.

@author Arnold Bergner
@since 5.3.0
support/cas-server-support-consent-ldap/src/test/java/org/apereo/cas/consent/LdapConsentRepositoryTests.java