@Test
    void verifyConsentDecisionId() throws Throwable {
        val user = UUID.randomUUID().toString();
        val repo = getRepository();
        val decision = repo.storeConsentDecision(BUILDER.build(SVC, REG_SVC, user, ATTR));
        assertNotNull(decision);
        assertTrue(decision.getId() > 0);
        await().untilAsserted(() -> assertTrue(repo.findConsentDecisions(user)
            .stream().anyMatch(desc -> desc.getId() == decision.getId())));
    }
This is {@link JsonConsentRepositoryTests}.

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