public void testDisjointFilter() throws Exception {
FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(null);
// should match only "r2"
GeometryFactory gf = new GeometryFactory();
PackedCoordinateSequenceFactory sf = new PackedCoordinateSequenceFactory();
LinearRing shell = gf.createLinearRing(sf.create(new double[] { 4, -1, 4, 5, 6, 5, 6, -1,
4, -1 }, 2));
Polygon polygon = gf.createPolygon(shell, null);
Disjoint dj = ff.disjoint(ff.property(aname("geom")), ff.literal(polygon));
FeatureCollection features = dataStore.getFeatureSource(tname("road")).getFeatures(dj);
checkSingleResult(features, "r2");