From http://stackoverflow.com/questions/10395745/how-to-test-rest-in-spring-app-with-spring-security