A 3D imaging electromagnetic calorimeter (ECAL) based on a lead/scintillating-fiber sandwich has been developed for the AMS-02 experiment on the International Space Station. This calorimeter should fulfill the constraints due to the launch and to the operation conditions in space. The engineering model of the ECAL was put through space qualification tests. Results of the vibration and thermal-vacuum tests are presented. To satisfy the physics aims, precise energy measurement and high discrimination between hadronic and electromagnetic cascades are required on a large dynamic range. The ECAL performances were checked by exposing the engineering model to a test beam at CERN in July 2002