Refactoring static class so I can unit test it
<p>I have a static class that I would like to refactor so I can change the name of the properties file etc., and to be able to unit test it easier.</p>

<p>Current I have this:</p>

<pre><code>public enum MySettings {

   INSTANCE;

   //priv vars
   private string applicationUrl;

   private MySettings() {

     MappingJsonFactory jf = new MappingJsonFactory();

    ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
    InputStream mySettingsInputStream = classLoader.getResourceAsStream("a.properties");

    Properties mySettingsProperties = new Properties().load(mySettingsInputStream);

    // code below to load json and set priv vars etc.




   }

   public String getApplicationUrl() {
       return applicationUrl;
   }
}
</code></pre>

<p>How could I set the name of the properties file to something else in my unit tests?</p>
