@Test
public void testFactoryMethod() throws Exception {

    try {
        ReferencedEnvelope bounds = new ReferencedEnvelope( DefaultGeographicCRS.WGS84_3D );
        fail("ReferencedEnvelope should not be able to represent 3D CRS such as GDA94");
    }
    catch (Exception expected){
    }
    
    ReferencedEnvelope bounds2 = ReferencedEnvelope.create( DefaultGeographicCRS.WGS84_3D );
    assertNotNull( bounds2 );
}