@Test
public void parsePolygonPatch()
                        throws XMLStreamException, FactoryConfigurationError, IOException, XMLParsingException,
                        UnknownCRSException {

    XMLStreamReaderWrapper parser = getParser( "PolygonPatch.gml" );
    PolygonPatch patch = (PolygonPatch) getPatchParser().parseSurfacePatch( parser,
                                                                            CRSManager.getCRSRef( "EPSG:4326" ) );
    Assert.assertEquals( 2.0, patch.getExteriorRing().getStartPoint().get0() );
    Assert.assertEquals( 0.0, patch.getExteriorRing().getStartPoint().get1() );
    Assert.assertEquals( 2.0, patch.getExteriorRing().getEndPoint().get0() );
    Assert.assertEquals( 0.0, patch.getExteriorRing().getEndPoint().get1() );
    Assert.assertEquals( 2, patch.getInteriorRings().size() );
}