@Test
public void include() throws Exception {

    ReferencedEnvelope3D australia = new ReferencedEnvelope3D( DefaultGeographicCRS.WGS84_3D );
    australia.include( 40, 110, 0);
    australia.include( 10, 150, 10);
    
    ReferencedEnvelope3D newZealand = new ReferencedEnvelope3D( DefaultEngineeringCRS.CARTESIAN_3D );        
    newZealand.include( 50, 165, 0);
    newZealand.include( 33, 180, 5);
    
    try {
        australia.expandToInclude( newZealand);
        fail( "Expected a missmatch of CoordianteReferenceSystem");
    }
    catch (MismatchedReferenceSystemException t){
        // expected
    }
    try {
        australia.include( newZealand);
        fail( "Expected a missmatch of CoordianteReferenceSystem");
    }
    catch (MismatchedReferenceSystemException t){
        // expected
    }
}