LessOperator extends AbstractOperator implements RelationalOperator { @Override public Predicate toPredicate(String prop, String val) { return new LessPredicate<String>(prop, val); } LessOperator(); @Override TYPE getType(); @Override Predicate toPredicate(String prop, String val); @Override String getName();  }
@Test public void testToPredicate() { assertEquals(new LessPredicate<String>("1", "2"), new LessOperator().toPredicate("1", "2")); }