}
@Test
public void testStroke() throws Exception {
Stroke original = sb.createStroke(Color.RED, 2, new float[] {5, 10});
original.accept(visitor);
Stroke clone = (Stroke) visitor.getCopy();
assertEquals(4.0d, clone.getWidth().evaluate(null, Double.class), 0d);
assertEquals(10.0f, clone.getDashArray()[0], 0d);
assertEquals(20.0f, clone.getDashArray()[1], 0d);