@Test
        void verifyResourceFromResourceUrl() throws Throwable {
            val resource = mock(Resource.class);
            when(resource.toString()).thenReturn("ldap://localhost:10389");
            assertNotNull(fetcher.fetch(resource));

            val uri = new URI("ldap://localhost:1389");
            assertNotNull(fetcher.fetch(uri));

            val url = mock(URL.class);
            when(url.toString()).thenReturn("ldap://localhost:10389");
            when(url.getProtocol()).thenReturn("ldap");
            assertNotNull(fetcher.fetch(url));

            assertNotNull(fetcher.fetch("ldap://localhost:10389"));
        }
Test cases for {@link LdaptiveResourceCRLFetcher}

@author Misagh Moayyed
@since 4.1
support/cas-server-support-x509/src/test/java/org/apereo/cas/adaptors/x509/authentication/ldap/LdaptiveResourceCRLFetcherTests.java