public void testValidateBounds() throws Exception {
Map map = MapTests.createDefaultMap("BasicFeatureRenderer", 4, true, new Dimension(1024,1024)); //$NON-NLS-1$
map.getViewportModelInternal().setCRS(DefaultGeographicCRS.WGS84);
createContext(map);
context.getRenderManagerInternal().setMapDisplay(new TestMapDisplay(new Dimension( 1000, 200)));
map.getViewportModelInternal().setBounds(0,100,0,90);
CoordinateReferenceSystem crs = DefaultGeographicCRS.WGS84;
Envelope result = BasicFeatureRenderer.validateBounds(new ReferencedEnvelope(0,50,0,10, crs), new NullProgressMonitor(), context);