public static String formatTime(final Time time) {
    return LocalTime.ofSecondOfDay(time.getTime() / 1000).toString();
  }
@Test
  public void shouldFormatTime() {
    assertThat(SqlTimeTypes.formatTime(new Time(1000)), is("00:00:01"));
    assertThat(SqlTimeTypes.formatTime(new Time(1005)), is("00:00:01"));
  }