### Question:
TimeInSecondsToStringConverter extends StringConverter<Number> { @Override public Number fromString(final String strValue) { if (strValue == null) { return -1; } return TimeUtils.timeString2TotalSeconds(strValue.trim()); }  @Override String toString(final Number nValue); @Override Number fromString(final String strValue);  }### Answer:
@Test public void testFromString() { assertEquals(-1, CONVERTER.fromString(null)); assertEquals(-1, CONVERTER.fromString("")); assertEquals(3600, CONVERTER.fromString("1:0:0")); assertEquals(3600, CONVERTER.fromString("0001:00:00")); assertEquals(0, CONVERTER.fromString("0")); assertEquals(-1, CONVERTER.fromString("0::0")); assertEquals(-1, CONVERTER.fromString("1:x:0")); assertEquals(-1, CONVERTER.fromString("1: 34:02")); }