public static Time parseTime(final String str) {
    try {
      return new Time(LocalTime.parse(str).toNanoOfDay() / 1000000);
    } catch (DateTimeParseException e) {
      throw new KsqlException("Failed to parse time '" + str
          + "': " + e.getMessage()
          + TIME_HELP_MESSAGE,
          e
      );
    }
  }
@Test
  public void shouldParseTime() {
    assertThat(SqlTimeTypes.parseTime("10:00:00"), is(new Time(36000000)));
    assertThat(SqlTimeTypes.parseTime("10:00"), is(new Time(36000000)));
    assertThat(SqlTimeTypes.parseTime("10:00:00.001"), is(new Time(36000001)));
  }