### Question:
Bounds extends Envelope { public static Bounds parse(String str) { return parse(str, true); } Bounds();  Bounds(Envelope env);  Bounds(double west, double east, double south, double north); static Bounds scale(Envelope env, double scale); static Bounds scale(Envelope env, double scale, Coordinate focus); static Bounds expand(Envelope env, double x, double y); static Bounds square(Envelope env); static List<Coordinate> corners(Envelope env); static Iterable<T> tile(final T env, double resx, double resy, final T reuse); static Bounds translate(Envelope env, double dx, double dy); static Polygon toPolygon(Envelope e); static boolean isNull(Envelope e); static String toString(Envelope e); static String toString(Envelope e, String delim, boolean alt); static Bounds parse(String str); static Bounds parse(String str, boolean alt); static Bounds parse(String str, boolean alt, String delim); static Envelope flip(Envelope e); static Envelope random(Envelope bbox, float res); static List<Envelope> randoms(Envelope bbox, float minRes, float maxRes, int n); double west(); double south(); double east(); double north(); double width(); double height(); Bounds scale(double factor); Bounds expand(double amt); Bounds expand(double x, double y); Bounds square(); Bounds shift(double dx, double dy); List<Coordinate> corners(); Iterable<Bounds> tile(double resx, double resy); Polygon polygon(); @Override Bounds intersection(Envelope env); @Override String toString(); static final Bounds WORLD_BOUNDS_4326; }### Answer:
@Test public void testParse() { Envelope e = Bounds.parse("1 2 3 4", true, " "); assertEquals(e.getMinX(), 1d, 0.1); assertEquals(e.getMinY(), 2d, 0.1); assertEquals(e.getMaxX(), 3d, 0.1); assertEquals(e.getMaxY(), 4d, 0.1); e = Bounds.parse("1.2.3.4", false, "\\."); assertEquals(e.getMinX(), 1d, 0.1); assertEquals(e.getMinY(), 3d, 0.1); assertEquals(e.getMaxX(), 2d, 0.1); assertEquals(e.getMaxY(), 4d, 0.1); }