@Test
public void testAddAll() {

	this.reference.clear();
	this.reference.add(new MapPoint(1000,1000));
	this.reference.add(new MapPoint(0,0));
	this.reference.add(new MapPoint(501,801));
	this.reference.add(new MapPoint(500,800));
	this.reference.add(new MapPoint(502,802));
	this.reference.add(new MapPoint(100,800));
	this.reference.add(new MapPoint(800,0));
	Rectangle2d bounds = new Rectangle2d();
	
	List<Point2d> transformed = new ArrayList<>();
	for (final GISPrimitive it : this.reference) {
		transformed.add(((MapPoint) it).getPoint());
	}
	
	bounds.setFromPointCloud(transformed);
	StandardGISGridSet<GISPrimitive> test = new StandardGISGridSet<>(100, 100, bounds);
	assertTrue(test.addAll(this.reference));
	int nb = 0;
	for(GISPrimitive p : test) {
		assertTrue(this.reference.contains(p));
		++nb;
	}
	assertEquals(this.reference.size(), nb);
}