@BeforeEach
    void init() {
        val request = new MockHttpServletRequest();
        RequestContextHolder.setRequestAttributes(new ServletRequestAttributes(request, new MockHttpServletResponse()));
    }
This is {@link BaseEndpointLdapAuthenticationProviderTests}.

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