question: public void testOverwite ( ) 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 = "simpleCopyWithOverwrite" ; String fileContents = "goodbye" ; File file1 = createFile ( configFileDirectory , fileName , fileContents ) ; FileConfig configFile = new FileConfig ( ) ; configFile . setFile ( getAbsolutePath ( file1 ) ) ; configFile . setToFile ( "existingfile" ) ; configFile . setOverwrite ( "true" ) ; testCopy ( configFile , "existingfile" , "goodbye" ) ; assertEquals ( "goodbye" , readFile ( existingFile ) ) ; }
target:  Test file copy with overwrite.