I had some clown pass me in a van, open the side door and toss out a large plastic drink cup -- filled w/ soda. Just so happens that I had the helmet cam rolling. We got evidence, a plate number.
Police cited the driver for "reckless endangerment" and (I love it.) littering -- which has a very hefty fine.
--------------------
The list of tips in this article refer to a lot of safety measures the rider on the bike should be taken as a pro-active defense toward his/her own security. Particularly the ones about "blind spots" and being visible. You don't ride in blind spots, and pay attention to drivers who might be driving in your blind spots.
The defense taught by Team Oregon for someone following too closely is to increase the distance between you and the vehicle ahead of you. Also, always keep your "escape path" open. Don't let cars box you in or cut off your safety cushion.
Finally, try to appreciate that when you get into a "territorial pissing contest" with a cager, you're negotiating your space from a compromised position.