China has successfully tested an intercontinental ballistic missile (ICBM).