@Test
public void testBoundsCRS() throws Exception {
CoordinateReferenceSystem targetCRS = CRS.decode("EPSG:32628", true);
ReferencedEnvelope nestedExpected = aggregateEnvelopes(forestLayer, roadSegmentsLayer,
lakesLayer, neatlineLayer, buildingsLayer, pondsLayer);
nestedExpected = nestedExpected.transform(targetCRS, true);
new LayerGroupHelper(nested).calculateBounds(targetCRS);
assertEquals(nestedExpected, nested.getBounds());
}
private ReferencedEnvelope aggregateEnvelopes(LayerInfo... layers) {