/**
* Tests the clone() method.
*/
public void testClone() {
RectilinearConnection conn = new RectilinearConnection();
RectilinearConnection cloned = (RectilinearConnection) conn.clone();
assertNull(cloned.getPoints());
List<Point2D> points = new ArrayList<Point2D>();
points.add(new Point2D.Double(1, 2));
points.add(new Point2D.Double(1, 3));
conn.setPoints(points);
RectilinearConnection cloned2 = (RectilinearConnection) conn.clone();
assertEquals(cloned2.getPoints(), conn.getPoints());
assertFalse(cloned2.getPoints() == conn.getPoints());
for (int i = 0; i < cloned2.getPoints().size(); i++) {
assertTrue(cloned2.getPoints().get(i) != conn.getPoints().get(i));
}
}