The following test annotations are no longer supported for Mockito 1.x:
- @MockBean
- @SpyBean
If testing needs to be done using the aforementioned annotations then Spring Boot 2.0 spring-boot-starter-test must be used or Mockito 2.x must be used explicitly.