DataModifiedTimeGenerator { public static String generateModifiedTime() { return new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date()); }  static String generateModifiedTime();  }
@Test public void testDataModifiedTimeGenerator() { Date date = new Date(); assertEquals(DataModifiedTimeGenerator.generateModifiedTime(date), new SimpleDateFormat("yyyyMMddHHmmssSSS").format(date)); }