Style[] styles = parser.readXML();
Assert.assertEquals(1, styles.length);
visitor.visit(styles[0]);
Style copy = (Style) visitor.getCopy();
FeatureTypeStyle featureTypeStyle = copy.featureTypeStyles().iterator().next();
Rule rule = featureTypeStyle.rules().iterator().next();
Iterator<Symbolizer> it = rule.symbolizers().iterator();
Assert.assertTrue(it.next() instanceof PointSymbolizer);
Assert.assertTrue(it.next() instanceof TextSymbolizer);
Assert.assertFalse(it.hasNext());
}