@Test
    void verifyUsernameAndDeviceId() throws Throwable {
        val acct = registry.create(UUID.randomUUID().toString());
        GoogleAuthenticatorAccount.builder()
            .username(acct.getUsername())
            .secretKey(acct.getSecretKey())
            .validationCode(acct.getValidationCode())
            .scratchCodes(acct.getScratchCodes())
            .name(UUID.randomUUID().toString())
            .build();
        mockMvc.perform(get("/actuator/gauthCredentialRepository/%s/%s".formatted(acct.getUsername(), acct.getId()))
                .contentType(MediaType.APPLICATION_JSON_VALUE)
                .accept(MediaType.APPLICATION_JSON)
            )
            .andExpect(status().isOk());
    }
This is {@link GoogleAuthenticatorTokenCredentialRepositoryEndpointTests}.

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