*/
public void testTextSymbolizer2() {
TextSymbolizer2 symb = (TextSymbolizer2) sf.createTextSymbolizer();
// Create a Graphic with two recognizable values
GraphicImpl gr = new GraphicImpl(ff);
gr.setOpacity(ff.literal(0.77));
gr.setSize(ff.literal(77));
symb.setGraphic(gr);
Literal snippet = ff.literal("no idea what a snipet is good for");
symb.setSnippet(snippet);
Literal fD = ff.literal("some description");
symb.setFeatureDescription(fD);
OtherTextImpl otherText = new OtherTextImpl();
otherText.setTarget("otherTextTarget");
otherText.setText(ff.literal("otherTextText"));
symb.setOtherText(otherText);
// copy it
TextSymbolizer2 copy = (TextSymbolizer2) visitor.copy(symb);
// compare it
assertEquals("Graphic of TextSymbolizer2 has not been correctly duplicated", gr, copy
.getGraphic());
assertEquals("Graphic of TextSymbolizer2 has not been correctly duplicated", gr.getOpacity(), copy
.getGraphic().getOpacity());
assertEquals("Graphic of TextSymbolizer2 has not been correctly duplicated", gr.getSize(), copy
.getGraphic().getSize());
assertEquals("Snippet of TextSymbolizer2 has not been correctly duplicated", snippet, copy
.getSnippet());
assertEquals("FeatureDescription of TextSymbolizer2 has not been correctly duplicated", fD, copy
.getFeatureDescription());