@Udf
  public <T> String toJsonString(@UdfParameter final T input) {
    return toJson(input);
  }
@Test
  public void shouldSerializeBytes() {
    // When:
    final String result = udf.toJsonString(ByteBuffer.allocate(4).putInt(1097151));

    // Then:
    assertEquals("\"ABC9vw==\"", result);
  }