@Test
public void testSetFill() throws Exception {

    PenStroke ps = new PenStroke();
    assertTrue(ps.getFill() instanceof SolidFill);
    SolidFill sf = (SolidFill) ps.getFill();
    assertEquals(sf.getColor().getColor(null),Color.BLACK);
    assertEquals(sf.getOpacity().getValue(null), (Double)1.0);
    ps.setFill(null);
    assertTrue(ps.getFill() instanceof SolidFill);
    sf = (SolidFill) ps.getFill();
    assertEquals(sf.getColor().getColor(null),Color.BLACK);
    assertEquals(sf.getOpacity().getValue(null), (Double)1.0);
    ps.setFill(new GraphicFill());
    assertFalse(ps.getFill() instanceof SolidFill);
}