public void testNegateOr() throws Exception {
// not(a > 3 or b = 5 or c < 0)
Filter fa = ff.greater(ff.property(aname(A)), ff.literal(3));
Filter fb = ff.equal(ff.property(aname(B)), ff.literal(5), false);
Filter fc = ff.less(ff.property(aname(C)), ff.literal(0));
Not filter = ff.not(ff.and(Arrays.asList(fa, fb, fc)));
ContentFeatureSource fs = dataStore.getFeatureSource(tname(ABC));
Query q = new Query(tname(ABC), filter);
int count = fs.getCount(q);
assertEquals(2, count);