public void testSimple() throws Exception {
InputStream stream = get("wms?service=WMS&version=1.1.0&&request=GetStyles&layers="
+ getLayerId(MockData.BASIC_POLYGONS) + "&sldver=1.0.0");
SLDParser parser = new SLDParser(CommonFactoryFinder.getStyleFactory(null));
parser.setInput(stream);
StyledLayerDescriptor sld = parser.parseSLD();
assertEquals(1, sld.getStyledLayers().length);
NamedLayer layer = (NamedLayer) sld.getStyledLayers()[0];
assertEquals(getLayerId(MockData.BASIC_POLYGONS), layer.getName());
assertEquals(1, layer.styles().size());