}
public void test() throws Exception {
SLDMockData.stroke(document, document);
Stroke stroke = (Stroke) parse();
assertNotNull(stroke);
assertEquals(Integer.parseInt("12", 16), SLD.color(stroke.getColor()).getRed());
assertEquals(Integer.parseInt("34", 16), SLD.color(stroke.getColor()).getGreen());
assertEquals(Integer.parseInt("56", 16), SLD.color(stroke.getColor()).getBlue());
assertNotNull(stroke.getGraphicFill());
assertEquals("butt", Filters.asString(stroke.getLineCap()));
assertEquals("mitre", Filters.asString(stroke.getLineJoin()));
assertEquals(1.1d, stroke.getDashArray()[0], 0.000001);
assertEquals(2.2d, stroke.getDashArray()[1], 0.000001);
assertEquals(3.3d, stroke.getDashArray()[2], 0.000001);
assertEquals(4.4d, stroke.getDashArray()[3], 0.000001);
assertEquals(1.0, Filters.asDouble(stroke.getOpacity()), 0d);
}