@Test
    void verifyPatternFilter() {
        this.filter.setPatterns(Map.of("memberOf", "^m"));
        val attrs = this.filter.filter(this.givenAttributesMap);
        assertEquals(attrs.size(), this.givenAttributesMap.size());
        assertEquals(2, CollectionUtils.toCollection(attrs.get("memberOf")).size());
    }
This is {@link RegisteredServiceMutantRegexAttributeFilterTests}.

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