@Test
public void testSupportAll() throws Exception {
PropertyIsEqualTo filter1 = createFunctionFilter();
FilterFunction_abs filterFunction_abs = new FilterFunction_abs();
filterFunction_abs.setParameters(Arrays.asList(new Expression[]{ff.property("name")}));
PropertyIsEqualTo filter2 = ff.equals(ff.property("name"), filterFunction_abs);
Filter filter=ff.and(filter1,filter2);
visitor = newVisitor(new Capabilities());
filter.accept(visitor, null);
assertEquals(Filter.INCLUDE, visitor.getFilterPre());
assertEquals(filter, visitor.getFilterPost());
Capabilities filterCapabilitiesMask = new Capabilities();
filterCapabilitiesMask.addName(testFunction.getName());
filterFunction_abs = new FilterFunction_abs();
filterCapabilitiesMask.addName(filterFunction_abs.getName());
filterCapabilitiesMask.addAll(Capabilities.SIMPLE_COMPARISONS_OPENGIS);
filterCapabilitiesMask.addAll(Capabilities.LOGICAL_OPENGIS);
visitor=newVisitor(filterCapabilitiesMask);
filter.accept(visitor, null);