As Archimedes said the cost of not having the gun and supporting it was less than the cost of developing a dummy (which still required maintenance through life with tech pubs for remove/install fix when dropped damaged etc), especially considering that the gun was allready installed and paid for, as was the spares/support/tech pubs (as was stated though, no ammo).