@Test
    void verifyOperationByFile() throws Throwable {
        val cas = File.createTempFile("cas", ".properties");
        FileUtils.writeStringToFile(cas, "server.port=0", StandardCharsets.UTF_8);
        val service = new CasConfigurationWatchService(applicationContext);
        service.initialize();

        val newFile = new File(cas.getParentFile(), "something");
        FileUtils.writeStringToFile(newFile, "helloworld", StandardCharsets.UTF_8);
        FileUtils.writeStringToFile(newFile, "helloworld-update", StandardCharsets.UTF_8, true);
        FileUtils.deleteQuietly(newFile);
        service.close();
    }
This is {@link CasConfigurationWatchServiceTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-configuration/src/test/java/org/apereo/cas/configuration/CasConfigurationWatchServiceTests.java