private static ConfigurableJWTProcessor getConfigurableJWTProcessor(final String sub) throws Exception {
        val jwtProcessor = mock(ConfigurableJWTProcessor.class);
        val claims = new JWTClaimsSet.Builder().subject(sub).build();
        when(jwtProcessor.process(anyString(), any())).thenReturn(claims);
        return jwtProcessor;
    }
This is {@link AmazonCognitoAuthenticationAuthenticationHandlerTests}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-aws-cognito-authentication/src/test/java/org/apereo/cas/authentication/AmazonCognitoAuthenticationAuthenticationHandlerTests.java