public static ParamType getVarArgsSchemaFromType(final Type type) {
    return getSchemaFromType(type, VARARGS_JAVA_TO_ARG_TYPE);
  }
@Test
  public void shouldGetDecimalSchemaForBigDecimalClassVariadic() {
    assertThat(
            UdfUtil.getVarArgsSchemaFromType(BigDecimal.class),
            is(ParamTypes.DECIMAL)
    );
  }