title: Spring Testing: How to enable auto-scan of beans
body: <p>For example, now in each test class I have to do</p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @ContextConfiguration(loader=AnnotationConfigContextLoader.class)
  </code></pre>
  
  <p>I want to get rid of </p>
  
  <pre><code> @ContextConfiguration(loader=AnnotationConfigContextLoader.class)
  </code></pre>
  
  <p>and want Spring to scan all the beans in my project.</p>
  
  <p>How can I do that?</p>