title: How to read string from .properties file in junit-tests?
body: <p>I use wicket in my webapplication. I save the Strings in some .properties files as follows:</p>
  
  <p>foo.properties</p>
  
  <pre><code>page.label=dummy
  </code></pre>
  
  <p>In the html-file, I can acces the String <code>page.label</code> as follows:</p>
  
  <p>index.html</p>
  
  <pre><code>&lt;wicket:message key="page.label"&gt;Default label&lt;/wicket:message&gt;
  </code></pre>
  
  <p>Now I wrote some junit test cases for my Application and would like to access the Strings saved in the properties file. My Question is, how to read the String from the properties file?</p>