@Test
public void testParse()
                        throws Exception {

    XMLStreamReader in = retrieveSldAsStream( "example-sld.xml" );
    RequestBase gm = mockRequestBase();
    Triple<LinkedList<LayerRef>, LinkedList<StyleRef>, LinkedList<OperatorFilter>> sld = SLDParser.parse( in, gm );
    LinkedList<LayerRef> layerRefs = sld.first;
    assertThat( layerRefs.size(), is( 1 ) );
    assertThat( layerRefs.get( 0 ).getName(), is( "OCEANSEA_1M:Foundation" ) );
    LinkedList<StyleRef> styleRefs = sld.second;
    assertThat( styleRefs.size(), is( 1 ) );
    assertThat( styleRefs.get( 0 ).getStyle().getFeatureType(), is( new QName( "Foundation" ) ) );
    assertThat( styleRefs.get( 0 ).getStyle().getRules().size(), is( 1 ) );
    LinkedList<OperatorFilter> operatorFilters = sld.third;
    assertThat( operatorFilters.size(), is( 1 ) );
    assertThat( operatorFilters.get( 0 ), is( nullValue() ) );
}