public static ParamType getVarArgsSchemaFromType(final Type type) {
    return getSchemaFromType(type, VARARGS_JAVA_TO_ARG_TYPE);
  }
@Test
  public void shouldGetFloatSchemaForDoublePrimitiveClassVariadic() {
    assertThat(
            UdfUtil.getVarArgsSchemaFromType(double.class),
            equalTo(ParamTypes.DOUBLE)
    );
  }