You really should have just said something instead of getting all pissy about it. I constantly, I mean constantly shake my legs, and to be honest I hardly ever realize I'm doing it, sometimes I have both legs going and don't even realize it. I've had it happen where I've pissed people off in a test, but why sit there and let it get to you, and then be whiny about it. Say something if he does it for a couple minutes, then maybe he or she can keep a handle on it for the whole exam.
Also, it wasn't me I graduated last year!