I have created a simple unit test but IntelliJ is incorrectly highlighting it red. marking it as an error
No beans?
I had a similar problem in my application. When I added annotations incorrect highliting dissapeared.
@ContextConfiguration(classes = {...})