@Test
public void testAddE() {

	StandardGISGridSet<GISPrimitive> test = new StandardGISGridSet<>(100,100,this.bounds);
       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.bounds.getMinX() + rnd.nextDouble() * this.bounds.getWidth();
       	double y = this.bounds.getMinY() + rnd.nextDouble() * this.bounds.getHeight();
        MapPolyline newElement = new MapPolyline();
        newElement.addPoint(x, y);
       	x = this.bounds.getMinX() + rnd.nextDouble() * this.bounds.getWidth();
       	y = this.bounds.getMinY() + rnd.nextDouble() * this.bounds.getHeight();
        newElement.addPoint(x, y);
        assertTrue(this.reference.add(newElement), msg);
        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$
       }
}