title: how to read a file from resources folder in properties file
body: <p>I have a file under resources folder <code>src/test/resources/file.xml</code>
  and another under <code>src/test/resources/test.properties</code>. I want to set a property in properties file to point to <code>file.xml</code>. How can I achieve this?</p>
  
  <p>Say I have a property</p>
  
  <pre><code>test.file = file.xml
  </code></pre>
  
  <p>and my java class reads the file as follows:</p>
  
  <pre><code>File cert = new File(fileName); // fileName is the value of test.file
  </code></pre>
  
  <p>This does not work however.</p>