Collect annotations for JUnit3 tests.

Necessary to support test filtering by annotation.