title: Spring load file from project folder for unit test
body: <p>I want to load an <code>xsd</code> file which is located at <code>../OtherContent/WEB-INF/spring/some-dir/filename.xsd</code>, where <code>OtherContent</code> folder is located in the same folder as my <code>src</code> folder. I have tried the following - </p>
  
  <pre><code>String path = "/OtherContent/WEB-INF/spring/some-dir/filename.xsd";
  URL url = MyClass.class.getResource(path);
  </code></pre>
  
  <p>The url object remains <code>null</code>. How do I load this file into a <code>URL</code> object ? </p>