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