@Test
    void verifySerializeToJson() throws Throwable {
        val jsonFile = Files.createTempFile(RandomUtils.randomAlphabetic(8), ".json").toFile();
        val strategy = new GroovyRegisteredServiceAttributeReleaseActivationCriteria();
        strategy.setGroovyScript("groovy { return false }");
        MAPPER.writeValue(jsonFile, strategy);
        val policyRead = MAPPER.readValue(jsonFile, GroovyRegisteredServiceAttributeReleaseActivationCriteria.class);
        assertEquals(strategy, policyRead);
    }
This is {@link GroovyRegisteredServiceAttributeReleaseActivationCriteriaTests}.

@author Misagh Moayyed
@since 7.1.0
core/cas-server-core-services-api/src/test/java/org/apereo/cas/services/GroovyRegisteredServiceAttributeReleaseActivationCriteriaTests.java