@Test
    void verifyTokenSave() {
        val casuser = UUID.randomUUID().toString();
        val token = new OneTimeToken(1234, casuser);
        repository.store(token);
        repository.store(token);
        assertEquals(2, repository.count(casuser));
        repository.clean();
        assertTrue(repository.exists(casuser, 1234));
        repository.remove(casuser);
        repository.remove(1234);
        repository.remove(casuser, 1234);
        assertNull(repository.get(casuser, 1234));
        assertEquals(0, repository.count());
    }
This is {@link CachingOneTimeTokenRepositoryTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-otp-mfa/src/test/java/org/apereo/cas/otp/repository/token/CachingOneTimeTokenRepositoryTests.java