private static <T> T executedTimedOperation(final String name, final Supplier<T> operation) {
        val stopwatch = new StopWatch();
        stopwatch.start();
        val result = operation.get();
        stopwatch.stop();
        val time = stopwatch.getTime(TimeUnit.MILLISECONDS);
        LOGGER.info("[{}]: [{}]ms", name, time);
        assertTrue(time <= 8000);
        return result;
    }
This is {@link RedisGoogleAuthenticatorTokenCredentialRepositoryTests}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-gauth-redis/src/test/java/org/apereo/cas/gauth/credential/RedisGoogleAuthenticatorTokenCredentialRepositoryTests.java