@Test
    void verifyAuthorizedByGroup() {
        val securityProperties = new SecurityProperties();
        securityProperties.getUser().setRoles(List.of("ROLE_888"));
        val ldap = casProperties.getMonitor().getEndpoints().getLdap();
        val connectionFactory = LdapUtils.newLdaptiveConnectionFactory(ldap);
        val authenticator = LdapUtils.newLdaptiveAuthenticator(ldap);
        val provider = new EndpointLdapAuthenticationProvider(ldap, securityProperties, connectionFactory, authenticator);
        assertNotNull(provider.authenticate(new UsernamePasswordAuthenticationToken("authzcas", "123456")));
        assertAll(provider::destroy);
    }
This is {@link EndpointLdapAuthenticationProviderGroupsBasedTests}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-ldap-core/src/test/java/org/apereo/cas/authorization/EndpointLdapAuthenticationProviderGroupsBasedTests.java