@Test
    void verifyAction() throws Throwable {
        val processor = new GroovyAuthenticationPreProcessor(new ClassPathResource("GroovyPreProcessor.groovy"));
        val transaction = mock(AuthenticationTransaction.class);
        val creds = CoreAuthenticationTestUtils.getCredentialsWithSameUsernameAndPassword();
        when(transaction.getPrimaryCredential()).thenReturn(Optional.of(creds));
        assertTrue(processor.process(transaction));
        assertTrue(processor.supports(creds));
        processor.destroy();
    }
This is {@link GroovyAuthenticationPreProcessorTests}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-authentication-api/src/test/java/org/apereo/cas/authentication/GroovyAuthenticationPreProcessorTests.java