@Test
public void testReadFeatureAsGeometryCollection() throws
                                                  Exception {

    // given a JSON Feature as GeometryCollection
    final StringReader reader = new StringReader(TestHelper.getFixture("feature_geometrycollection.json"));
    // when read the JSON as Feature
    final Feature feature = geoJsonReader.readFeature(reader);
    // then
    assertNotNull(feature);
    assertEquals("id1",
                 feature.getId());
    assertEquals("Feature",
                 feature.getType());
    assertNotNull(feature.getGeometry());
    assertEquals(createGeometryCollection(gf,
                                          createPoint(gf,
                                                      47.2256258d,
                                                      -1.5545135d),
                                          createMultiPoint(gf,
                                                           createPoint(gf,
                                                                       47.2256258d,
                                                                       -1.5545135d),
                                                           createPoint(gf,
                                                                       47.225136d,
                                                                       -1.553913d)),
                                          createLineString(gf,
                                                           createCoordinate(gf,
                                                                            47.2256258d,
                                                                            -1.5545135d),
                                                           createCoordinate(gf,
                                                                            47.225136d,
                                                                            -1.553913d)),
                                          createMultiLineString(gf,
                                                                createLineString(gf,
                                                                                 createCoordinate(gf,
                                                                                                  47.2256258d,
                                                                                                  -1.5545135d),
                                                                                 createCoordinate(gf,
                                                                                                  47.225136d,
                                                                                                  -1.553913d))),
                                          createPolygon(gf,
                                                        createCoordinate(gf,
                                                                         47.226219d,
                                                                         -1.554430d),
                                                        createCoordinate(gf,
                                                                         47.226237d,
                                                                         -1.554261d),
                                                        createCoordinate(gf,
                                                                         47.226122d,
                                                                         -1.554245d),
                                                        createCoordinate(gf,
                                                                         47.226106d,
                                                                         -1.554411d),
                                                        createCoordinate(gf,
                                                                         47.226219d,
                                                                         -1.554430d))),
                 feature.getGeometry());
}