Envelope bounds = new EnvelopeImpl( positionA, positionB );
LineSegmentImpl segment = new LineSegmentImpl( crs, new double[]{10,Double.NaN}, new double[]{70,Double.NaN}, 0.0 );
// create expected ring
DirectPosition one = new DirectPositionImpl( segment.getStartPoint() );
one.setOrdinate( 1, bounds.getMinimum(1) );
DirectPosition two = new DirectPositionImpl( segment.getEndPoint() );
two.setOrdinate( 1, bounds.getMinimum(1) );
DirectPosition three = new DirectPositionImpl( two );
three.setOrdinate( 1, bounds.getMaximum(1) );
DirectPosition four = new DirectPositionImpl( one );
four.setOrdinate( 1, bounds.getMaximum(1) );
LineSegment edge1 = new LineSegmentImpl( one, two, 0.0 );
LineSegment edge2 = new LineSegmentImpl( two, three, 0.0 );
LineSegment edge3 = new LineSegmentImpl( three, four, 0.0 );
LineSegment edge4 = new LineSegmentImpl( four, one, 0.0 );