*
* @throws Exception
*/
@Test
public void transformBboxOverlappingTest() throws Exception {
Bbox bbox = new Bbox(51, 5, 10, 10);
Bbox transformed1 = geoService.transform(bbox, LONLAT, LAMBERT72);
// we expect the same result if we transform the clipped part
Bbox bboxClipped = new Bbox(51, 5, 6, 4);
Bbox transformed2 = geoService.transform(bboxClipped, LONLAT, LAMBERT72);
Assert.assertEquals(transformed1.getX(), transformed2.getX(), DELTA);
Assert.assertEquals(transformed1.getY(), transformed2.getY(), DELTA);
Assert.assertEquals(transformed1.getMaxX(), transformed2.getMaxX(), DELTA);
Assert.assertEquals(transformed1.getMaxY(), transformed2.getMaxY(), DELTA);
}