@Test
    void checkGrouperAttributes() {
        val strategy = new GrouperRegisteredServiceAccessStrategy() {
            @Serial
            private static final long serialVersionUID = 8533229193475808261L;

            @Override
            protected Collection<WsGetGroupsResult> fetchWsGetGroupsResults(final String principal) {
                val group = new WsGroup();
                group.setExtension("GroupExtension");
                group.setDescription("Group Desc");
                group.setName("SampleGroup");
                group.setUuid(UUID.randomUUID().toString());
                val result = new WsGetGroupsResult();
                result.setWsGroups(new WsGroup[]{group});
                return List.of(result);
            }
        };
        val requiredAttributes = new HashMap<String, Set<String>>();
        requiredAttributes.put(GrouperRegisteredServiceAccessStrategy.GROUPER_GROUPS_ATTRIBUTE_NAME, Set.of("SampleGroup"));
        strategy.setRequiredAttributes(requiredAttributes);
        assertTrue(executeStrategy(strategy));
    }
The {@link GrouperRegisteredServiceAccessStrategyTests} provides
test cases for {@link GrouperRegisteredServiceAccessStrategy}.

@author Misagh Moayyed
@since 4.2
support/cas-server-support-grouper/src/test/java/org/apereo/cas/grouper/services/GrouperRegisteredServiceAccessStrategyTests.java