@Test
    void verifyScriptedAttributeFilterInlined() throws Throwable {
        val filter = new RegisteredServiceScriptedAttributeFilter(0, "groovy {logger.debug('exec'); return attributes;}");
        val results = filter.filter(this.givenAttributesMap);
        assertEquals(2, results.size());

        val file = new File(FileUtils.getTempDirectoryPath(), "verifyScriptedAttributeFilterInlined.json");
        MAPPER.writeValue(file, filter);
        val read = MAPPER.readValue(file, RegisteredServiceScriptedAttributeFilter.class);
        assertEquals(filter, read);
    }
This is {@link RegisteredServiceScriptedAttributeFilterTests}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-services/src/test/java/org/apereo/cas/services/support/RegisteredServiceScriptedAttributeFilterTests.java