Tests for get[Declared]Annotations[ByType]().

Bug: 27466777
(cherry picked from c36149a02343dde71e089a18bb1317418a35b809)

Change-Id: Ia05210ebab8441e756b0d963ecef7da3a012fcfd
2 files changed