@Test
    void verifyNoAccounts() throws Throwable {
        val file = File.createTempFile("account", ".json");
        FileUtils.writeStringToFile(file, "{}", StandardCharsets.UTF_8);
        val repo = buildRepositoryInstance(new FileSystemResource(file));
        assertTrue(repo.get("casuser").isEmpty());
        repo.deleteAll();
        assertTrue(repo.load().isEmpty());

        val account = repo.create(UUID.randomUUID().toString());
        account.setUsername(null);
        assertNull(repo.save(account));
        account.setUsername(UUID.randomUUID().toString());
        assertNotNull(repo.save(account));
        assertEquals(1, repo.count());
        repo.delete(account.getUsername());
        assertTrue(repo.load().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