points.add(new Point2D.Double(rectNode1.getAbsoluteX2(), 30));
points.add(new Point2D.Double(190, 30));
points.add(new Point2D.Double(190, rectNode2.getAbsoluteY1()));
conn.setPoints(points);
RectilinearConnection copy = new RectilinearConnection();
copy.copyData(conn);
assertEquals(3, copy.getPoints().size());
assertEquals(rectNode1.getAbsoluteX2(), copy.getPoints().get(0).getX());
assertEquals(copy.getPoints().get(0).getY(),
copy.getPoints().get(1).getY());
assertEquals(copy.getPoints().get(1).getX(),
copy.getPoints().get(2).getX());
assertEquals(rectNode2.getAbsoluteY1(), copy.getPoints().get(2).getY());
}