Converter { public static String getDurationStringLong(int duration) { int[] hms = millisecondsToHms(duration); return String.format(Locale.getDefault(), "%02d:%02d:%02d", hms[0], hms[1], hms[2]); } private  Converter(); static String getDurationStringLong(int duration); static String getDurationStringShort(int duration, boolean durationIsInHours); static int durationStringLongToMs(String input); static int durationStringShortToMs(String input, boolean durationIsInHours); static String getDurationStringLocalized(Context context, long duration); static String shortLocalizedDuration(Context context, long time); static float getVolumeFromPercentage(int progress);  }
@Test public void testGetDurationStringLong() { String expected = "13:05:10"; int input = 47110000; assertEquals(expected, Converter.getDurationStringLong(input)); }