title: getResourceAsStream("abc.xml") returning null
body: <p>I am writing a unit test case like this,</p>
  
  <pre><code> public class XMLUtilsTest {
    private static final String XML_FOR_TEST ="a/b/c/xml_utils_test.xml";
  
  
   @Before
   public void setup() {
  
   }
  
  @Test
  public void testGetElementValue() throws Exception {
    InputStream inputStream = readTestXML(XML_FOR_TEST);
  
    System.out.println("Input Stream: "+inputStream);
  }
  
  private InputStream readTestXML(String testXmlFile) {
  //InputStream inputStream = XMLUtilsTest.class.getResourceAsStream(testXmlFile);
  //InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream(testXmlFile);
   InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(testXmlFile);
   return inputStream;
   }
  }
  </code></pre>
  
  <p>While debugging, i observe that this.getClass().getClassLoader() call in the readTestXML method loads class properly but when getResourceAsStream(testXmlFile) is invoked on output of this.getClass().getClassLoader() , the output is null.</p>
  
  <p>my project structure is like this,</p>
  
  <pre><code> --src
     --main
     --test
         --java
             --XMLUtilsTest.java
         --resources
             --a.b.c
                 --xml_utils_test.xml
  </code></pre>
  
  <p>Please suggest.</p>
  
  <p>Thanks,</p>
  
  <p>Vijay Bhore</p>