@Test
    void verifyOperation() {
        val enc = new GroovyPasswordEncoder(new ClassPathResource("GroovyPasswordEncoder.groovy"), mock(ApplicationContext.class));
        assertTrue(enc.matches("helloworld", "6adfb183a4a2c94a2f92dab5ade762a47889a5a1"));
        assertNotNull(enc.encode("helloworld", "thisIsSalt".getBytes(StandardCharsets.UTF_8)));
        enc.destroy();
    }
This is {@link GroovyPasswordEncoderTests}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-authentication-api/src/test/java/org/apereo/cas/authentication/support/password/GroovyPasswordEncoderTests.java