public void testCoalesheNestedAnd()
{
Filter eq = ff.equal(ff.property("A"), ff.literal("3"), true);
Filter gt = ff.greater(ff.property("b"), ff.literal("3"));
Filter lt = ff.less(ff.property("c"), ff.literal("5"));
And nested = ff.and(Arrays.asList(ff.and(Arrays.asList(eq, gt)), lt));
And simplified = (And) nested.accept(visitor, null);
assertEquals(3, simplified.getChildren().size());
assertEquals(ff.and(Arrays.asList(eq, gt, lt)), simplified);
}