@Override
                protected GcGetGroups getGroupsClient() {
                    val group = mock(WsGroup.class);
                    when(group.getName()).thenReturn("Group1");

                    val result = mock(WsGetGroupsResult.class);
                    when(result.getWsGroups()).thenReturn(Arrays.array(group));
                    
                    val results = mock(WsGetGroupsResults.class);
                    when(results.getResults()).thenReturn(Arrays.array(result));
                    val gc = mock(GcGetGroups.class);
                    when(gc.execute()).thenReturn(results);
                    return gc;
                }
This is {@link GrouperPersonAttributeDaoTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-grouper/src/test/java/org/apereo/cas/grouper/GrouperPersonAttributeDaoTests.java