@Udf
  public <T> String toJsonString(@UdfParameter final T input) {
    return toJson(input);
  }
@Test
  public void shouldSerializeLong() {
    // When:
    final String result = udf.toJsonString(123L);

    // Then:
    assertEquals("123", result);
  }