private static void verifyReferencingOperation() throws Exception {
// ReferencedEnvelope[-0.24291497975705742 : 0.24291497975711265, -0.5056179775280899 :
// -0.0]
// ReferencedEnvelope[-0.24291497975705742 : 0.24291497975711265, -0.5056179775280899 :
// -0.0]
CoordinateReferenceSystem EPSG4326 = CRS.decode("EPSG:4326"); //$NON-NLS-1$
ReferencedEnvelope pixelBounds = new ReferencedEnvelope(-0.24291497975705742,
0.24291497975711265, -0.5056179775280899, 0.0, EPSG4326);
CoordinateReferenceSystem WGS84 = DefaultGeographicCRS.WGS84;
ReferencedEnvelope latLong = pixelBounds.transform(WGS84, false);
if (latLong == null) {
String msg = "Unable to transform EPSG:4326 to DefaultGeographicCRS.WGS84"; //$NON-NLS-1$
System.out.println(msg);