Simpler way to get the current time.
MODIFY
src/test/java/org/apache/commons/io/FileUtilsTestCase.java
src/test/java/org/apache/commons/io/FileUtilsTestCase.java
@@ -1231,7 +1231,7 @@ public void testCopyFile2WithoutFileDatePreservation() throws Exception {
backDateFile10Minutes(testFile1); // set test file back 10 minutes
// destination file time should not be less than this (allowing for granularity)
- final long now = new Date().getTime() - 1000L;
+ final long now = System.currentTimeMillis() - 1000L;
FileUtils.copyFile(testFile1, destFile, false);
assertTrue(destFile.exists(), "Check Exist");
assertEquals(testFile2Size, destFile.length(), "Check Full copy");

Simpler way to get the current time.