}
@Test
public void testPickStyle() throws JiBXException, LayerException {
IBindingFactory bfact = BindingDirectory.getFactory(StyledLayerDescriptorInfo.class);
IUnmarshallingContext uctx = bfact.createUnmarshallingContext();
Object object = uctx.unmarshalDocument(getClass().getResourceAsStream("/org/geomajas/testdata/sld/multiple_layer_stylename.sld"), null);
StyledLayerDescriptorInfo sld = (StyledLayerDescriptorInfo) object;
NamedStyleInfo info1 = styleConverterService.convert(sld, featureInfo, "Layer1", "Style1");
Assert.assertNotNull(info1);
Assert.assertEquals("Style1", info1.getName());
Assert.assertEquals(1, info1.getFeatureStyles().size());