Add tests about annotations and enum.

For reproduction of https://code.google.com/p/android/issues/detail?id=78144

Bug: 18385117

Change-Id: I23be53a0ae481a501d13adc8abf518ac664a772f
Merge "Add tests about annotations and enum."