@Test
    void verifyFails() throws Throwable {
        val resource = mock(Resource.class);
        val repo = buildRepositoryInstance(resource);
        assertTrue(repo.load().isEmpty());
        assertNull(repo.update(OneTimeTokenAccount.builder().build()));
        assertEquals(0, repo.count());
        assertDoesNotThrow(() -> repo.delete("casuser"));
        when(resource.getFile()).thenReturn(File.createTempFile("test", ".json"));
        assertTrue(repo.get("casuser").isEmpty());
    }
This is {@link JsonGoogleAuthenticatorTokenCredentialRepositoryTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-gauth/src/test/java/org/apereo/cas/gauth/credential/JsonGoogleAuthenticatorTokenCredentialRepositoryTests.java