@Udf
  public <T> String toJsonString(@UdfParameter final T input) {
    return toJson(input);
  }
@Test
  public void shouldSerializeTime() {
    // When:
    final String result = udf.toJsonString(SqlTimeTypes.parseTime("06:02:20.588"));

    // Then:
    assertEquals("\"06:02:20\"", result);
  }