@Autowired
private GeocoderUtilService geocoderUtilService;
@Test
public void transformEnvelopeTest() throws Exception {
CoordinateReferenceSystem source = geoService.getCrs("EPSG:900913");
CoordinateReferenceSystem target = geoService.getCrs("EPSG:4326");
Envelope envelope = new Envelope(10, 20, 30, 40);
Envelope transformed = geocoderUtilService.transform(envelope, source, target);
Assert.assertEquals(8.983152841195215E-5, transformed.getMinX(), DELTA);
Assert.assertEquals(2.6949458522981454E-4, transformed.getMinY(), DELTA);
Assert.assertEquals(1.796630568239043E-4, transformed.getMaxX(), DELTA);