private static File writeFile(File application, String name, String content) {
        File ret = null;
        try {
            name = application.getCanonicalPath() + "/" + name;
            System.out.println("\tWriting file '" + name + "'.");

            PrintWriter writer = new PrintWriter(new FileWriter(name));
            writer.print(content);
            writer.close();

            ret = new File(name);
        } catch (IOException e) {
            fail(e.getMessage());
        }
        return ret;
    }
Writes content to a specific file.

@param application The application directory.
@param name        The name of the file to write.
@param content     The content to write.
@return The file written.
config-model/src/test/java/com/yahoo/vespa/model/routing/test/RoutingTestCase.java