features[0] = SimpleFeatureBuilder.build(ft,new Object[]{line[0], attrValues[0]}, Integer.toString(0));
features[1] = SimpleFeatureBuilder.build(ft,new Object[]{line[1], attrValues[1]}, Integer.toString(1));
features[2] = SimpleFeatureBuilder.build(ft,new Object[]{line[2], attrValues[2]}, Integer.toString(2));
features[3] = SimpleFeatureBuilder.build(ft,new Object[]{line[3], attrValues[3]}, Integer.toString(3));
IGeoResource resource = MapTests.createGeoResource(features, true);
Map map = MapTests.createNonDynamicMapAndRenderer(resource, new Dimension(500, 512));
ValidateOverlaps validator = new ValidateOverlaps();
validator.op(Display.getDefault(), map.getLayersInternal().get(0),
new NullProgressMonitor());
assertEquals(1, validator.genericResults.failedFeatures.size()); //only line[0] and line[1] should fail (counts as 1)