@Test
    void verifyConsentDecisionIsNotFound() throws Throwable {
        val user = getUser();
        val repo = getRepository();
        val decision = BUILDER.build(SVC, REG_SVC, user, ATTR);
        decision.setId(1);
        assertNotNull(repo.storeConsentDecision(decision));
        assertFalse(repo.findConsentDecisions().isEmpty());
        assertFalse(repo.findConsentDecisions(user).isEmpty());
        assertNull(repo.findConsentDecision(SVC, REG_SVC, CoreAuthenticationTestUtils.getAuthentication()));
        await().untilAsserted(() -> assertFalse(repo.deleteConsentDecision(decision.getId(), UUID.randomUUID().toString())));
    }
This is {@link BaseConsentRepositoryTests}.

@author Timur Duehr
@since 6.0.0
support/cas-server-support-consent-core/src/test/java/org/apereo/cas/consent/BaseConsentRepositoryTests.java