Two of the three wars the two countries have fought have been over the disputed territory .