Add compliance tests for common patterns (#2746)* Add compliance test for rest action annotations* Add compliance test for future annotations* Add compliance test for nullability annotations (commit: 84b0a0d)