Style style = layer.getStyles()[0];
assertEquals(1, style.featureTypeStyles().size());
FeatureTypeStyle fts = style.featureTypeStyles().get(0);
assertEquals(1, fts.rules().size());
Rule rule = fts.rules().get(0);
assertEquals(4, rule.symbolizers().size());
// every symbolizer has the vendor option
PolygonSymbolizer poly = (PolygonSymbolizer) rule.symbolizers().get(0);
assertEquals(1, poly.getOptions().size());
assertEquals("true", poly.getOptions().get("labelObstacle"));