Testing an annotation should use annotationType(), as getClass() may return a random proxy implementation. Change-Id: I9bb0ac041ed10acc8a312c458be7d7d0dd6f9c20