transformer.transform(symbolizer); // test that it can be written to xml correctly
assertFill(1.0, fontColor, symbolizer.getFill());
assertEquals("name", valueOf(symbolizer.getLabel()));
final Font font = symbolizer.getFont();
final List<Expression> family = font.getFamily();
assertEquals(1, family.size());
assertEquals(fontFamily, valueOf(family.get(0)));
assertEquals(12, valueOf(font.getSize()));
assertEquals(fontStyle, valueOf(font.getStyle()));
assertEquals(fontWeight, valueOf(font.getWeight()));
PointPlacement placement = (PointPlacement) symbolizer.getLabelPlacement();
assertEquals(45.0, valueOf(placement.getRotation()));
assertEquals(0.5, valueOf(placement.getAnchorPoint().getAnchorPointX()));
assertEquals(0.5, valueOf(placement.getAnchorPoint().getAnchorPointY()));