SearchContext ctx = prepareScriptParams(params);
assertThat(ctx.operatorArgs.size(), is(2));
AbstractScalarScriptFactory.WrappedArgument arg1 = ctx.operatorArgs.get(0);
assertThat(arg1, instanceOf(ScalarArgument.class));
ScalarArgument scalarArg1 = (ScalarArgument) arg1;
assertThat(scalarArg1.getType(), is((DataType)DataTypes.LONG));
assertThat(scalarArg1.args.get(0).getType(), is((DataType)DataTypes.DOUBLE));
}