MockMvc
MockMvc is built on Servlet API mock implementations from the spring-test
module and does not rely on a running container. Therefore, there are some differences when compared to full end-to-end integration tests with an actual client and a live server running.
Alternatively, you may consider the full end-to-end integration testing support from Spring Boot with @SpringBootTest