WASHINGTON — The conflict that ended, for now, in a cease-fire between Hamas and Israel seemed like the latest episode in a periodic showdown. But there was a second, strategic agenda unfolding, according to American and Israeli officials: The exchange was something of a practice run for any future armed confrontation with Iran, featuring improved rockets that can reach Jerusalem and new antimissile systems to counter them.