title: intellij incorrectly saying no beans of type found for autowired repository
body: <p>I have created a simple unit test but IntelliJ is incorrectly highlighting it red. marking it as an error</p>
  
  <p>No beans?</p>
  
  <p><img src="https://i.stack.imgur.com/4cCFH.png" alt="enter image description here"></p>
  
  <p>As you can see below it passes the test? So it must be Autowired?</p>
  
  <p><img src="https://i.stack.imgur.com/YFGln.png" alt="enter image description here"></p>