China has been on the receiving end of trade protectionism since 2008, so it knows enough to oppose such measures.