String fileName = FILENAME;
String targetFileName = FILENAME + ".bak";
try {
FileIO.copyFile(fileName, targetFileName);
String s1 = FileIO.readerToString(new FileReader(fileName));
String s2 = FileIO.readerToString(new FileReader(targetFileName));
assertEquals(s1, s2);
} catch (IOException ex) {
System.err.println(ex);
throw new IllegalArgumentException(ex.toString());
}