I have created a simple unit test but IntelliJ is incorrectly highlighting it red. marking it as an error
No beans?
Have you checked that you have used @services annotation on top of your service implementation? It worked for me.
@services
import org.springframework.stereotype.Service; @Service public class UserServiceImpl implements UserServices {}