MockMvc allows you to test controllers without starting a server.
With MockMvc, you can simulate HTTP requests and test your controllers in isolation. This is useful because it speeds up testing and reduces the overhead of starting a server. For example, when testing a login endpoint, you can use MockMvc to send a POST request and check the response status without needing to deploy the application.