import static org.junit.Assert.*;
public class AnyLikeOperatorTest {
private static Symbol normalizeSymbol(String pattern, String ... expressions) {
Literal patternLiteral = Literal.newLiteral(pattern);
Object[] value = new Object[expressions.length];
for (int i=0; i < expressions.length; i++) {
value[i] = expressions[i] == null ? null : new BytesRef(expressions[i]);
}
Literal valuesLiteral = Literal.newLiteral(new ArrayType(DataTypes.STRING), value);
AnyLikeOperator impl = (AnyLikeOperator)new AnyLikeOperator.AnyLikeResolver().getForTypes(
Arrays.asList(valuesLiteral.valueType(), patternLiteral.valueType())
);
Function function = new Function(
impl.info(),
Arrays.<Symbol>asList(valuesLiteral, patternLiteral)