@Test
public void testAddE() {

	StandardGISGridSet<GISPrimitive> test = new StandardGISGridSet<>(100,100,this.worldBounds);
	assertTrue(test.addAll(this.reference));
	assertEquals(this.reference.size(), test.size());
	String msg;
	Random rnd = new Random();
	int testCount = rnd.nextInt(5)+1;
	for(int i=0; i<testCount; ++i) {
		msg = "test "+(i+1)+"/"+testCount; //$NON-NLS-1$ //$NON-NLS-2$
		getLogger().info(msg+"..."); //$NON-NLS-1$
		// Add an element
		double x = this.worldBounds.getMinX() + rnd.nextDouble() * this.worldBounds.getWidth();
		double y = this.worldBounds.getMinY() + rnd.nextDouble() * this.worldBounds.getHeight();
		GISPrimitive newElement = new MapPoint(x,y);
		assertTrue(this.reference.add(newElement));
		assertTrue(test.add(newElement), msg);
		assertEquals(this.reference.size(), test.size(), msg);
		assertTrue(test.slowContains(newElement), msg);
		assertEpsilonEquals(this.reference.toArray(),test.toArray(), msg);
		getLogger().info("done"); //$NON-NLS-1$
	}
}