@@ -0,0 +1,1174 @@
+package fgis.server.support.geojson;%0A%0Aimport java.util.Arrays;%0Aimport org.testng.annotations.Test;%0Aimport static org.testng.Assert.*;%0A%0Apublic final class GjGeometryCollectionTest%0A  extends AbstractGjElementTest%0A%7B%0A  @Test%0A  public void basic()%0A    throws Exception%0A  %7B%0A    final GjGeometry g = new GjGeometry( fromWkT( %22POINT (1 1)%22 ), null, null, null );%0A    final GjGeometryCollection e = new GjGeometryCollection( Arrays.asList( g ), null, null, null );%0A    assertEquals( e.getCollection().size(), 1 );%0A    assertTrue( e.getCollection().contains( g ) );%0A    assertPropertyAllowed( e, %22X%22 );%0A    assertPropertyNotAllowed( e, %22geometries%22 );%0A    try%0A    %7B%0A      e.getCollection().add( g );%0A    %7D%0A    catch ( Exception e1 )%0A    %7B%0A      return;%0A    %7D%0A    fail( %22Expected collection list to be immutable but an edit was allowed%22 );%0A  %7D%0A%0A  @SuppressWarnings( %22ConstantConditions%22 )%0A  @Test%0A  public void nullGeometryCollectionPassed()%0A    throws Exception%0A  %7B%0A    try%0A    %7B%0A      new GjGeometryCollection( null, null, null, null );%0A    %7D%0A    catch ( final IllegalArgumentException e )%0A    %7B%0A      return;%0A    %7D%0A    fail( %22Expected to fail when passing null collection%22 );%0A  %7D%0A%7D%0A

Create a test for geometry collection