// undashed
mockDrawingContext.expects(once()).method("drawLine")
.with(eq(10.0), eq(5.0), eq(20.0), eq(5.0));
mockDrawingContext.expects(once()).method("drawLine")
.with(eq(20.0), eq(5.0), eq(30.0), eq(5.0));
conn.draw((DrawingContext) mockDrawingContext.proxy());
// dashed
conn.setIsDashed(true);
mockDrawingContext.expects(once()).method("drawDashedLine")
.with(eq(10.0), eq(5.0), eq(20.0), eq(5.0));