harness.check(line1.intersects(new Rectangle2D.Double(0.0, 0.0, 1.0, 1.0)));
harness.check(!line1.intersects(new Rectangle2D.Double(0.0, 1.0, 1.0, 1.0)));
Line2D line2 = new Line2D.Double(0.0, 0.0, 0.0, 1.0);
harness.check(line2.intersects(-1.0, 0.0, 1.0, 1.0));
harness.check(line2.intersects(0.0, 0.0, 1.0, 1.0));
harness.check(!line2.intersects(1.0, 0.0, 1.0, 1.0));
harness.check(line2.intersects(new Rectangle2D.Double(-1.0, 0.0, 1.0, 1.0)));
harness.check(line2.intersects(new Rectangle2D.Double(0.0, 0.0, 1.0, 1.0)));
harness.check(!line2.intersects(new Rectangle2D.Double(1.0, 0.0, 1.0, 1.0)));