@Test
    void verifyDisposedRepository() throws Throwable {
        val repo = new JsonConsentRepository(new FileSystemResource(File.createTempFile("records", ".json")));
        assertNotNull(repo.getWatcherService());
        assertDoesNotThrow(repo::destroy);
    }
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