Q1How do you test REST APIs with MockMvc in Spring Boot
MockMvc is a Spring test class that performs HTTP requests against your controllers in-memory without starting a real server, and @WebMvcTest is a slice test annotation that loads only the web layer for fast, isolated controller testing.