Article about Security OAuth you can get at porterhead.blogspot.com/2014/05/securing-rest-services-with-spring.html
Spring Rest with security and with OAuth 2 and with tests example Original repository without tests you can get at https://github.com/neel4software/SpringSecurityOAuth2
Also if you needed in some examples about MVC tests you can get more information at http://www.petrikainulainen.net/programming/spring-framework/integration-testing-of-spring-mvc-applications-write-clean-assertions-with-jsonpath/ and at http://www.petrikainulainen.net/programming/spring-framework/unit-testing-of-spring-mvc-controllers-rest-api/
and also you can see a good example at https://github.com/royclarkson/spring-rest-service-oauth/blob/master/src/test/java/hello/GreetingControllerTest.java
If It was interesting put stars