@Udf
  public Long round(@UdfParameter final long val) {
    return val;
  }
@Test
  public void shouldRoundSimpleDoublePositive() {
    assertThat(udf.round(0.0d), is(0L));
    assertThat(udf.round(1.23d), is(1L));
    assertThat(udf.round(1.0d), is(1L));
    assertThat(udf.round(1.5d), is(2L));
    assertThat(udf.round(1.75d), is(2L));
    assertThat(udf.round(1.53e6d), is(1530000L));
    assertThat(udf.round(10.01d), is(10L));
    assertThat(udf.round(12345.5d), is(12346L));
    assertThat(udf.round(9.99d), is(10L));
    assertThat(udf.round(110.1), is(110L));
    assertThat(udf.round(1530000.01d), is(1530000L));
    assertThat(udf.round(9999999.99d), is(10000000L));
  }