title: JUnit Error: "Failed to load ApplicationContext"
body: <p>Nothing seems to work</p>
  
  <p>I'm trying to run simple test:</p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @ContextConfiguration(locations = {"/applicationContext.xml"})
  @Transactional
  public class EmailServiceTest {
  </code></pre>
  
  <p>I've also tried:</p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @ContextConfiguration(locations = {"src/main/webapp/WEB-INF/applicationContext.xml"})
  @Transactional
  public class EmailServiceTest {
  </code></pre>
  
  <p>Along with a few different things in place of "location," such as "classpath" and "file."</p>
  
  <p>The "ApplicationContext" is located:</p>
  
  <pre><code>src
      main
          webapp
              WEB-INF
                  applicationContext.xml
  </code></pre>
  
  <p>But JUnit test still says: Failed to load ApplicationContext</p>