@Test
    void verifyBadParsing() {
        val loc = new RestfulPropertySourceLocator();
        try (val webServer = new MockWebServer("@@")) {
            webServer.start();
            val environment = new MockEnvironment();
            environment.setProperty(RestfulPropertySourceLocator.CAS_CONFIGURATION_PREFIX + ".url", "http://localhost:" + webServer.getPort());
            environment.setProperty(RestfulPropertySourceLocator.CAS_CONFIGURATION_PREFIX + ".basic-auth-username", "casuser");
            environment.setProperty(RestfulPropertySourceLocator.CAS_CONFIGURATION_PREFIX + ".basic-auth-password", "password");

            assertTrue(((Map) loc.locate(environment).getSource()).isEmpty());
        }
    }
This is {@link RestfulPropertySourceLocatorTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-configuration-cloud-rest/src/test/java/org/apereo/cas/RestfulPropertySourceLocatorTests.java