@Test(expected = IllegalArgumentException.class)
  public void testBadLiteral() throws Exception {
    SearchArgumentFactory.newBuilder()
        .startAnd()
        .lessThan("x", PredicateLeaf.Type.LONG, "hi")
        .end()
        .build();
  }
Create a predicate leaf. This is used by another test.
ql/src/test/org/apache/hadoop/hive/ql/io/sarg/TestSearchArgumentImpl.java