title: Properties.loadFromXML NullPointerException with jUnit
body: <p>I have the problem with loading properties from xml inside jUnit test (the same code works well without jUnit):</p>
  
  <pre><code>public class InternetMapTest {
  
  private Properties properties;
  
  @Before
  public void readProperties() {
  
  try {
  ClassLoader loader = ClassLoader.getSystemClassLoader();
  InputStream stream = loader.getResourceAsStream("analyse.properties.xml");
  properties.loadFromXML(stream);
  </code></pre>
  
  <p>...</p>
  
  <p>if I run test, I get</p>
  
  <pre><code>java.lang.NullPointerException
      at xxx.yyy.zzz.analyse.tests.InternetMapTest.readProperties(InternetMapTest.java:27)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ...
      ...
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
  </code></pre>
  
  <p>Unfortunately, I can't identify the problem using this stack trace. First of all, I thought that the file was not found (it's located in /src/test/resources). But
     System.out.println(loader.getResource("analyse.properties.xml"));
  returns correct file path.</p>
  
  <p>Can somebody help, please?</p>
  
  <p>I use STS 2.9.1 with Maven (plugin version 2.3.1, as I think) and jUnit 4.10 under Ubuntu 12.04 amd64.</p>
  
  <p>Thank you in advance,
  Kind Regards.</p>