title: this.getClass().getClassLoader().getResource("...") and NullPointerException
body: <p>I have created a minimal maven project with a single child module in eclipse helios.</p>
  
  <p>In the src/test/resources folder I have put a single file "install.xml". In the folder src/test/java I have created a single package with a single class that does:</p>
  
  <pre><code>  @Test
    public void doit() throws Exception {
      URL url = this.getClass().getClassLoader().getResource("install.xml");
      System.out.println(url.getPath());
  
    }
  </code></pre>
  
  <p>but when I run the code as a junit 4 unit test I just get a NullPointerException. This has worked fine a million of times before. Any ideas?</p>
  
  <p>I have followed this guide:</p>
  
  <p><a href="http://www.fuyun.org/2009/11/how-to-read-input-files-in-maven-junit/" rel="noreferrer">http://www.fuyun.org/2009/11/how-to-read-input-files-in-maven-junit/</a></p>
  
  <p>but still get the same error.</p>