@Test
public void testEditCRS() throws Exception {
CoordinateReferenceSystem epsg4326 = CRS.decode("EPSG:4326", true);
CoordinateReferenceSystem epsg4140 = CRS.decode("EPSG:4140", true);
final ReferencedEnvelope e = new ReferencedEnvelope(-180,180,-90,90, epsg4326);
tester.startPage(new FormTestPage(new ComponentBuilder() {
public Component buildComponent(String id) {
EnvelopePanel panel = new EnvelopePanel(id, e);
panel.setCRSFieldVisible(true);
return panel;