An exercise testing how security agencies would respond to a terrorist attack on a cruise ship was conducted in San Diego, Calif. on July 26.