Viewing the JavaDocks for @MockBean, it states to use @MockitoBean For me it was a simple replace of the Annotation.