StopTimeFieldMappingFactory implements FieldMappingFactory { public static String getSecondsAsString(int t) { int seconds = positiveMod(t, 60); int hourAndMinutes = (t - seconds) / 60; int minutes = positiveMod(hourAndMinutes, 60); int hours = (hourAndMinutes - minutes) / 60; StringBuilder b = new StringBuilder(); b.append(_format.format(hours)); b.append(":"); b.append(_format.format(minutes)); b.append(":"); b.append(_format.format(seconds)); return b.toString(); }  FieldMapping createFieldMapping(EntitySchemaFactory schemaFactory,
      Class<?> entityType, String csvFieldName, String objFieldName,
      Class<?> objFieldType, boolean required); static String getSecondsAsString(int t); static int getStringAsSeconds(String value);  }
@Test public void getGetSecondsAsString() { assertEquals("00:00:00", getSecondsAsString(0)); assertEquals("00:01:00", getSecondsAsString(60)); assertEquals("-01:59:00", getSecondsAsString(-60)); assertEquals("01:01:00", getSecondsAsString(3660)); assertEquals("-01:01:00", getSecondsAsString(-3540)); assertEquals("10:20:30", getSecondsAsString(37230)); assertEquals("-10:20:30", getSecondsAsString(-34770)); assertEquals("100:15:13", getSecondsAsString(360913)); assertEquals("-100:15:13", getSecondsAsString(-359087)); }