BEIJING (AP) — China’s top general says Beijing considers a fourth North Korean nuclear test to be a possibility.

Chief of the General Staff Gen. Fang Fenghui said Monday that Beijing firmly opposes the North’s nuclear weapons program and wants to work with others on negotiations to end it.

Fang offered no indication as to when Beijing thought a test might take place and gave no other details. His comments followed a meeting with Gen. Martin Dempsey, chairman of the Joint Chiefs of Staff, who is making his first visit to China in that position.

Fang sought to reassure Dempsey over recent reports of Chinese military-sponsored hacking attacks on U.S. targets, saying China opposed all such activity. Dempsey called his visit part of an effort to strengthen relations between the two militaries.