### Question:
Proj { public static Bounds bounds(CoordinateReferenceSystem crs) { Projection p = crs.getProjection(); if (p != null) { CoordinateReferenceSystem geo = crs("epsg:4326"); Point p1 = gBuilder.point(p.getMinLongitudeDegrees(), p.getMinLatitudeDegrees()).toPoint(); Point p2 = gBuilder.point(p.getMaxLongitudeDegrees(), p.getMaxLatitudeDegrees()).toPoint(); p1 = reproject(p1, geo, crs); p2 = reproject(p2, geo, crs); return new Bounds(p1.getX(), p2.getX(), p1.getY(), p2.getY()); } return null; }  static CoordinateReferenceSystem crs(int srid); static CoordinateReferenceSystem crs(String s); static CoordinateReferenceSystem crs(String... projdef); static CoordinateReferenceSystem crs(Geometry geom); static Geometry crs(Geometry g, CoordinateReferenceSystem crs); static Geometry crs(Geometry g, CoordinateReferenceSystem crs, boolean overwrite); static Integer epsgCode(CoordinateReferenceSystem crs); static Bounds bounds(CoordinateReferenceSystem crs); static T reproject(T g, String from, String to); static T reproject(T g, CoordinateReferenceSystem from, 
        CoordinateReferenceSystem to); static T transform(T g, CoordinateTransform tx); static T transform(T g, CoordinateTransform tx, boolean inPlace); static Bounds reproject(Envelope e, String from, String to); static Bounds reproject(Envelope e, CoordinateReferenceSystem from,
        CoordinateReferenceSystem to); static CoordinateTransform transform(CoordinateReferenceSystem from, 
        CoordinateReferenceSystem to); static String toString(CoordinateReferenceSystem crs); static CoordinateReferenceSystem fromWKT(String wkt); static String toWKT(CoordinateReferenceSystem crs, boolean format); static boolean equal(CoordinateReferenceSystem crs1, CoordinateReferenceSystem crs2); static final CoordinateReferenceSystem EPSG_4326; static final CoordinateReferenceSystem EPSG_900913; }### Answer:
@Test public void testBounds() { Envelope b = Proj.bounds(Proj.crs("epsg:4326")); assertEquals(-180,b.getMinX(),0.1); assertEquals(-90,b.getMinY(),0.1); assertEquals(180,b.getMaxX(),0.1); assertEquals(90,b.getMaxY(),0.1); b = Proj.bounds(Proj.crs("epsg:900913")); assertEquals(-20037508.34, b.getMinX(), 0.01); assertEquals(-19971868.88, b.getMinY(), 0.01); assertEquals(20037508.34, b.getMaxX(), 0.01); assertEquals(19971868.88, b.getMaxY(), 0.01); CoordinateReferenceSystem crs = Proj.crs("EPSG:3005"); assertNotNull(Proj.bounds(crs)); }