Following my post here:
Spring MockMvcBuilders Security filter
I have manage to create REST API with UsernamePasswordAuthenticationToken for /oauth/token but I didn't manage to create the test for my protected resource (on running server it work fine).
Could you show us your REST interface ?