question: public void testConfigFileProperty ( ) throws Exception { File configHome = new File ( configuration . getHome ( ) ) ; assertTrue ( "Could not find a proper configuration home." , configHome . exists ( ) && configHome . isDirectory ( ) ) ; File existingFile = createFile ( configHome , "existingfile" , "helloworld" ) ; assertEquals ( "helloworld" , readFile ( existingFile ) ) ; String fileName = "testConfigfile" ; String fileContents = "Hello @message@ " ; File file = createFile ( configFileDirectory , fileName , fileContents ) ; FileConfig configFile = new FileConfig ( ) ; configFile . setFile ( getAbsolutePath ( file ) ) ; configFile . setToFile ( "existingfile" ) ; configFile . setOverwrite ( false ) ; configFile . setConfigfile ( false ) ; configuration . setProperty ( "message" , "world" ) ; configuration . setConfigFileProperty ( configFile ) ; configuration . doConfigure ( null ) ; File copiedFile = new File ( configuration . getHome ( ) + "/existingfile" ) ; assertTrue ( "Cannot find the expected copied file" , copiedFile . exists ( ) ) ; assertEquals ( "Hello world " , readFile ( copiedFile ) ) ; }
target:  Test configuration file property.