assertNull(anyNotLikeNormalize(null, "bar"));
}
@Test
public void testNegateNotLike() throws Exception {
Literal patternLiteral = Literal.newLiteral("A");
Literal valuesLiteral = Literal.newLiteral(new ArrayType(DataTypes.STRING),
new Object[]{new BytesRef("A"), new BytesRef("B")});
FunctionImplementation<Function> impl = new AnyNotLikeOperator.AnyNotLikeResolver().getForTypes(
Arrays.asList(valuesLiteral.valueType(), DataTypes.STRING)
);
Function anyNotLikeFunction = new Function(impl.info(), Arrays.<Symbol>asList(valuesLiteral, patternLiteral));
Input<Boolean> normalized = (Input<Boolean>) impl.normalizeSymbol(anyNotLikeFunction);
assertThat(normalized.value(), is(true));
assertThat(new NotPredicate().evaluate(normalized), is(false));