### Question:
ScheduleUtil { public static String dataToString(Date d) { FastDateFormat yyyyMMddHHmmss = FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss"); return yyyyMMddHHmmss.format(d); }  static String getLocalHostName(); static String getLocalIP(); static String dataToString(Date d); static String runningEntryFromTaskName(String taskName, String ownSign); static String taskNameFromRunningEntry(String runningEntry); static String ownsignFromRunningEntry(String runningEntry); static int[] generateSequence(int nodeCount, int jobCount, int nodeCapacity); static String getLeader(Collection<String> serverUuidList); static boolean isLeader(String serverUuid, List<String> serverUuidList);  }### Answer:
@Test public void dataToString() { assertEquals("2019-01-02 17:59:25", ScheduleUtil.dataToString(new Date(1546423165000L))); }