TimeFormatUtil { public static String formatTime(int numSeconds) { Calendar c = Calendar.getInstance(TimeZone.getTimeZone("GMT")); c.setTimeInMillis(0); c.add(Calendar.SECOND, numSeconds); return DF.format(c); } private  TimeFormatUtil(); static String formatTime(int numSeconds); static String getFormattedDuration(int simTimeSeconds); static int parseFormattedDuration(@Nonnull String formattedTime);  }
@Test public void testFormatTime_1() throws Exception { int numSeconds = 1; String result = TimeFormatUtil.formatTime(numSeconds); assertEquals("00:00:01", result); }