@Test
    void verifyGroups() throws Throwable {
        val facade = new DefaultGrouperFacade() {
            @Override
            public WsGetGroupsResult[] fetchGroupsFor(final String subjectId) {
                val group = new WsGroup();
                group.setExtension("GroupExtension");
                group.setDisplayName("DisplayNameGroupExtension");
                group.setDisplayExtension("DisplaySampleGroupExtension");
                group.setDescription("Group Desc");
                group.setName("SampleGroup");
                group.setUuid(UUID.randomUUID().toString());

                val result = new WsGetGroupsResult();
                result.setWsGroups(new WsGroup[]{group});
                return new WsGetGroupsResult[]{result};
            }
        };
        assertFalse(facade.getGroupsForSubjectId("casuser").isEmpty());
    }
This is {@link GrouperFacadeTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-grouper-core/src/test/java/org/apereo/cas/grouper/GrouperFacadeTests.java