For the latest stable version, please use Spring Security 6.4.5!

SecurityMockMvcRequestPostProcessors

To use Spring Security’s RequestPostProcessor implementations, use the following static import:

import static org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.*;