@Test
    public void testDoubleCalls() {
        val authenticator = new OnlyOneCallAuthenticator();
        val localCachingAuthenticator = new LocalCachingAuthenticator(authenticator, 10, 10, TimeUnit.SECONDS);
        localCachingAuthenticator.init();
        final Credentials credentials1 = new UsernamePasswordCredentials("a", "a");
        localCachingAuthenticator.validate(null, credentials1);
        final Credentials credentials2 = new UsernamePasswordCredentials("a", "a");
        localCachingAuthenticator.validate(null, credentials2);
    }
Test cases for {@link LocalCachingAuthenticator}.

@author Misagh Moayyed
@since 1.8
pac4j-core/src/test/java/org/pac4j/core/credentials/authenticator/LocalCachingAuthenticatorTests.java