Bean created by @MockBean still has its fields autowired · Issue #6663 · spring-projects/spring-boot · GitHub
![Test Spring Boot Applications with JUnit 5, Controller layer Testing. @WebMvcTest @MockBean MockMvc - YouTube Test Spring Boot Applications with JUnit 5, Controller layer Testing. @WebMvcTest @MockBean MockMvc - YouTube](https://i.ytimg.com/vi/I0ZJisZbtWs/hqdefault.jpg)
Test Spring Boot Applications with JUnit 5, Controller layer Testing. @WebMvcTest @MockBean MockMvc - YouTube
Consider @Primary when @MockBean could mock more than one bean · Issue #10655 · spring-projects/spring-boot · GitHub
![Thai Dessert, Mung Bean Rice-crepe, Mock Bean Pods Stock Photo - Image of colors, homemade: 153961134 Thai Dessert, Mung Bean Rice-crepe, Mock Bean Pods Stock Photo - Image of colors, homemade: 153961134](https://thumbs.dreamstime.com/b/thai-dessert-mung-bean-rice-crepe-mock-pods-153961134.jpg)