@Test
    void verifyOperationByFile() throws Throwable {
        val env = new MockEnvironment();
        val sources = CasConfigurationPropertiesEnvironmentManager.configureEnvironmentPropertySources(env);
        env.getPropertySources().addFirst(sources);

        val file = File.createTempFile("cas", ".properties");
        FileUtils.writeStringToFile(file, "server.port=8899", StandardCharsets.UTF_8);
        env.setProperty(CasConfigurationPropertiesSourceLocator.PROPERTY_CAS_STANDALONE_CONFIGURATION_FILE, file.getCanonicalPath());
        assertEquals(file.getCanonicalPath(), CasConfigurationPropertiesSourceLocator.getStandaloneProfileConfigurationFile(env).getCanonicalPath());
    }
This is {@link CasConfigurationPropertiesEnvironmentManagerTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-configuration-api/src/test/java/org/apereo/cas/configuration/CasConfigurationPropertiesEnvironmentManagerTests.java