### Question:
TimeUtils { @Deprecated public static String timestampToDateString(long milli, String format) { Date date = new Date(milli); SimpleDateFormat sdf = new SimpleDateFormat(format, Locale.US); sdf.setTimeZone(TimeZone.getDefault()); return sdf.format(date); } private  TimeUtils(); @Deprecated static String timestampToDateString(long milli, String format);  }### Answer:
@Test public void timestampToDate() { TimeZone.setDefault(TimeZone.getTimeZone("UTC")); String date = TimeUtils.timestampToDateString(1571991195000L, "yyyyMMddHHmmss"); assertThat(date, is("20191025081315")); }