public void testSumWithFilter() throws Exception {
FilterFactory ff = dataStore.getFilterFactory();
PropertyName p = ff.property( aname("doubleProperty") );
SumVisitor v = new MySumVisitor(p);
Filter f = ff.less( ff.property( aname("doubleProperty") ), ff.literal(2) );
Query q = new DefaultQuery( tname("ft1"), f);
dataStore.getFeatureSource( tname("ft1")).accepts( q, v, null);
assertFalse(visited);
assertEquals( 1.1, v.getResult().toDouble(), 0.01 );
}