Those kinds of tests have been done with lasers already.
This is a defensive application of lasers, like CIWS is a defensive application of guns.