TimeFormatUtil { public static String getFormattedDuration(int simTimeSeconds) { int hours = simTimeSeconds / TIME_3600; simTimeSeconds = simTimeSeconds - (hours * TIME_3600); int minutes = simTimeSeconds / TIME_60; simTimeSeconds = simTimeSeconds - (minutes * TIME_60); int seconds = simTimeSeconds; return nf.format(hours) + ":" + nf.format(minutes) + ":" + nf.format(seconds); } private  TimeFormatUtil(); static String formatTime(int numSeconds); static String getFormattedDuration(int simTimeSeconds); static int parseFormattedDuration(@Nonnull String formattedTime);  }
@Test public void testGetFormattedDuration_1() throws Exception { int simTimeSeconds = 1; String result = TimeFormatUtil.getFormattedDuration(simTimeSeconds); assertEquals("00:00:01", result); }