### Question:
Util { public static String formateDate(Date date, String formate) { SimpleDateFormat simpleDateFormat = new SimpleDateFormat(formate); return simpleDateFormat.format(date); }  static Integer getProcessId(); static String formateDate(Date date, String formate); static String formateDate(Date date); static void sleep(long millisecondes); static List<List<T>> split(List<T> lst, int count); static boolean isEmpty(String str); final static String SSS_FORMATE; }### Answer:
@Test public void formateDateTest() { Date date = new Date(2019 - 1900, 0, 1); Calendar calendar = Calendar.getInstance(); calendar.set(2019, 0, 1, 0, 0, 0); assertEquals("2019-01-01", Util.formateDate(calendar.getTime(), "yyyy-MM-dd")); assertEquals("2019-01-01 00:00:00", Util.formateDate(calendar.getTime())); assertEquals("2019-01-01", Util.formateDate(date, "yyyy-MM-dd")); assertEquals("2019-01-01 00:00:00", Util.formateDate(date)); }