@@ -0,0 +1,1248 @@
+package fgis.server.support.geojson;%0A%0Aimport org.geolatte.geom.Geometry;%0Aimport org.testng.annotations.Test;%0Aimport static org.testng.Assert.*;%0A%0Apublic final class GjGeometryTest%0A  extends AbstractGjElementTest%0A%7B%0A  @Test%0A  public void geometry()%0A    throws Exception%0A  %7B%0A    final Geometry geometry = fromWkT( %22POINT (1 1)%22 );%0A    final GjGeometry e = new GjGeometry( geometry, null, null, null );%0A    assertEquals( e.getGeometry(), geometry );%0A    assertPropertyAllowed( e, %22X%22 );%0A    assertPropertyNotAllowed( e, %22coordinates%22 );%0A  %7D%0A%0A  @SuppressWarnings( %22ConstantConditions%22 )%0A  @Test%0A  public void nullGeometryPassedToGeometry()%0A    throws Exception%0A  %7B%0A    try%0A    %7B%0A      new GjGeometry( 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 geometry%22 );%0A  %7D%0A%0A  @SuppressWarnings( %22ConstantConditions%22 )%0A  @Test%0A  public void geometryCollectionPassedToGeometryShouldFail()%0A    throws Exception%0A  %7B%0A    try%0A    %7B%0A      new GjGeometry( fromWkT( %22GEOMETRYCOLLECTION(POINT (1 1))%22 ), null, null, null );%0A    %7D%0A    catch ( final IllegalArgumentException e )%0A    %7B%0A      return;%0A    %7D%0A    fail( %22Expected to fail when passing null geometry%22 );%0A  %7D%0A%7D%0A

Add some tests around geometry types