My SpringBootTest annotation cannot be resolved to a type. There is the same question here but it seems that adding the dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>2.0.5.RELEASE</version>
<scope>test</scope>
</dependency>
cannot do the trick. Whole problem is that I wanted to use @ContextConfiguration but it is deprecated and suggested way of doing things is using the @SpringBootTest(classes = MyMainClass.class)