final Envelope2D disjoint = (Envelope2D) create(RECTANGLE, -2, 10, 35, 40);
final Envelope2D spanning = (Envelope2D) create(RECTANGLE, 16, -8, 35, 40);
for (int type=0; type<LAST; type++) {
final String label = "Type " + type;
final Envelope envelope = create(type, 12, -364, 30, 50);
final DirectPosition lower = envelope.getLowerCorner();
final DirectPosition upper = envelope.getUpperCorner();
assertEquals(label, 30, envelope.getMinimum (1), STRICT);
assertEquals(label, 50, envelope.getMaximum (1), STRICT);
assertEquals(label, 40, envelope.getMedian (1), STRICT);
assertEquals(label, 20, envelope.getSpan (1), STRICT);
assertEquals(label, 12, lower .getOrdinate(0), STRICT);
assertEquals(label, -180, envelope.getMinimum (0), STRICT);
assertEquals(label, -364, upper .getOrdinate(0), STRICT);
assertEquals(label, +180, envelope.getMaximum (0), STRICT);
assertEquals(label, 4, envelope.getMedian (0), STRICT); // Note the alternance with the previous test methods.
assertEquals(label, NaN, envelope.getSpan (0), STRICT); // testCrossingAntiMeridian() + 360°.
if (envelope instanceof AbstractEnvelope) {
final AbstractEnvelope ext = (AbstractEnvelope) envelope;