private StyleFactory styleFactory = CommonFactoryFinder.getStyleFactory(null);
@Test
public void testLabels() throws IOException {
VectorLayerRasterizingInfo vectorLayerRasterizingInfo = new VectorLayerRasterizingInfo();
vectorLayerRasterizingInfo.setPaintGeometries(false);
vectorLayerRasterizingInfo.setPaintLabels(true);
RasterizingStyleVisitor visitor = new RasterizingStyleVisitor(vectorLayerRasterizingInfo);
SLDParser parser = new SLDParser(styleFactory);
parser.setInput(getClass().getResource("point_pointwithdefaultlabel.sld"));
Style[] styles = parser.readXML();
Assert.assertEquals(1, styles.length);