I have created a simple unit test but IntelliJ is incorrectly highlighting it red. marking it as an error
No beans?
If you don't want to make any change to you code just to make your IDE happy. I have solved it by adding all components to the Spring facet.