@Test
public void intersection() throws Exception {

    ReferencedEnvelope australia = new ReferencedEnvelope( DefaultGeographicCRS.WGS84 );
    australia.include( 40, 110);
    australia.include( 10, 150);
    
    ReferencedEnvelope newZealand = new ReferencedEnvelope( DefaultEngineeringCRS.CARTESIAN_2D );        
    newZealand.include( 50, 165);
    newZealand.include( 33, 180);
    try {
        australia.intersection(newZealand);
        fail( "Expected a missmatch of CoordianteReferenceSystem");
    }
    catch (MismatchedReferenceSystemException t){
        // expected
    }
}