private static File createFile(final String name) throws Exception {
        val path1 = new File(FileUtils.getTempDirectory(), name);
        val res = path1.createNewFile();
        if (res) {
            LOGGER.debug("Created JSON resource @ [{}]", path1);
        }
        return path1;
    }
This is {@link FileWatcherServiceTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-util-api/src/test/java/org/apereo/cas/util/io/FileWatcherServiceTests.java