I\'m struggling with testing access control on URLs protected by Spring Security.
The configuration looks like this:
http .authorizeReque
Okay, figured it out.
mockMvc.perform(get("/api/user/account") .with(user("user"))) .andExpect(status().isOk());
It works now.