@Test
public void testParse_defaultValues()
                        throws Exception {

    GetMapParser getMapXMLAdapter = new GetMapParser();
    XMLStreamReader xmlStreamReader = createXmlStreamReader( "wms-1.3.0-GetMap_simple.xml" );
    GetMap getMap = getMapXMLAdapter.parse( xmlStreamReader );
    LinkedList<LayerRef> layers = getMap.getLayers();
    assertThat( layers.size(), is( 1 ) );
    assertThat( layers, hasLayerRef( "municipalities" ) );
    LinkedList<StyleRef> styles = getMap.getStyles();
    assertThat( styles.size(), is( 1 ) );
    assertThat( styles, hasStyleRef( "Municipalities" ) );
    assertThat( getMap.getWidth(), is( 10 ) );
    assertThat( getMap.getHeight(), is( 50 ) );
    assertThat( getMap.getFormat(), is( "image/jpeg" ) );
    assertThat( getMap.getTransparent(), is( false ) );
    assertThat( getMap.getBgColor(), is( WHITE ) );
    assertThat( getMap.getCoordinateSystem(), is( CRSManager.lookup( "EPSG:4326" ) ) );
    Envelope boundingBox = getMap.getBoundingBox();
    assertThat( boundingBox.getMin().get0(), is( -115.4 ) );
    assertThat( boundingBox.getMin().get1(), is( 35.0 ) );
    assertThat( boundingBox.getMax().get0(), is( -108.0 ) );
    assertThat( boundingBox.getMax().get1(), is( 44.0 ) );
    Map<String, String> parameterMap = getMap.getParameterMap();
    assertThat( parameterMap.size(), is( 1 ) );
    assertThat( parameterMap.get( "EXCEPTIONS" ), is( "XML" ) );
}