GeometryFactory fac = new GeometryFactory();
type = DataUtilities.createType("type", "geom:Point,name:String,id:int");
features = new ArrayList<SimpleFeature>(2);
feature1 = SimpleFeatureBuilder.build(type, new Object[]{fac.createPoint(new Coordinate(10, 10)), "name1", 1}, "ID1");
feature2 = SimpleFeatureBuilder.build(type, new Object[]{fac.createPoint(new Coordinate(10, 10)), "name2", 2}, "ID2");
feature3 = SimpleFeatureBuilder.build(type, new Object[]{fac.createPoint(new Coordinate(10, 10)), "name3", 3}, "ID3");
feature4 = SimpleFeatureBuilder.build(type, new Object[]{fac.createPoint(new Coordinate(10, 10)), "name4", 4}, "ID4");
features.add(feature1);