title: spring junit testing
body: <p>I have a maven spring project (latest version) and I want to write some junit tests (latest version).</p>
  
  <p>The issue I have is that my spring beans are autowired, and when I call them from junit test, I get null pointer exceptions, as spring doesn't autowire them.</p>
  
  <p>How can I load the context so that things are autowired?</p>