@Udf
  public List<Integer> generateSeriesInt(
      @UdfParameter(description = "The beginning of the series") final int start,
      @UdfParameter(description = "Marks the end of the series (inclusive)") final int end
  ) {
    return generateSeriesInt(start, end, end - start > 0 ? 1 : -1);
  }
@Test
  public void shouldComputeNegativeIntRange() {
    final List<Integer> range = rangeUdf.generateSeriesInt(9, 0);
    assertThat(range, hasSize(10));
    int val = 9;
    for (final Integer i : range) {
      assertThat(val--, is(i));
    }
  }