ComplexNodeTransformer implements PredicateProcessor { @Override public Predicate process(Predicate predicate, PredicateOptions options) { processPredicate(predicate, options); return predicate; }  void processPredicate(Predicate predicate, PredicateOptions options); @Override Predicate process(Predicate predicate, PredicateOptions options);  }
@Test public void requireThatExistingPartitionsAreCleared() { testConvert("foo in [10..19]", "foo in [10..19 (foo=10-19)]"); Predicate p = Predicate.fromString("foo in [10..19]"); ((FeatureRange)p).addPartition(new RangePartition("foo", 10000L, 20000L, false)); ComplexNodeTransformer tranformer = new ComplexNodeTransformer(); Predicate converted = tranformer.process(p, new PredicateOptions(10, lowerBound, upperBound)); assertEquals("foo in [10..19 (foo=10-19)]", converted.toString()); }