title: How can I find the classpath that a Surefire/Junit4 test will search?
body: <p>I need to override some properties in a JUnit test running as part of our Maven-based build.  In order to do that, I need to figure out where to place the override file in our test environment.   How can I determine the classpath that this line is checking when it runs in the test environment?</p>
  
  <pre><code>stream = getClass().getClassLoader().getResourceAsStream(resourceName);
  </code></pre>
  
  <p>I've checked the javadoc for ClassLoader but it's not terribly clear on this point.  </p>