China is modernizing the military as it gets more assertive in its territorial disputes in the East and South China Seas.