@Test
public void testSetLineCap() throws Exception {

    PenStroke ps = new PenStroke();
    assertEquals(ps.getLineCap(), PenStroke.LineCap.BUTT);
    ps.setLineCap(null);
    assertEquals(ps.getLineCap(), PenStroke.LineCap.BUTT);
    ps.setLineCap(PenStroke.LineCap.SQUARE);
    assertEquals(ps.getLineCap(), PenStroke.LineCap.SQUARE);
}